Skip to content

Commit

Permalink
Fix complexity API limits
Browse files Browse the repository at this point in the history
  • Loading branch information
ferblape committed Mar 14, 2024
1 parent 9086895 commit 0ed6f00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/initializers/decidim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
~

0 comments on commit 0ed6f00

Please sign in to comment.