diff --git a/config/initializers/decidim.rb b/config/initializers/decidim.rb index 69c6791..438d427 100644 --- a/config/initializers/decidim.rb +++ b/config/initializers/decidim.rb @@ -40,3 +40,10 @@ # Inform Decidim about the assets folder Decidim.register_assets_path File.expand_path("app/packs", Rails.application.root) + +# API configuration +Rails.application.config.to_prepare do + Decidim::Api::Schema.max_complexity = 5000 + Decidim::Api::Schema.max_depth = 50 +end +~