chore(flipper): don't preload on /assets/* or /ping
This commit is contained in:
parent
f342bcb58b
commit
ca17b356fc
1 changed files with 2 additions and 0 deletions
|
@ -56,5 +56,7 @@ Flipper.configure do |config|
|
|||
end
|
||||
|
||||
Rails.application.configure do
|
||||
# don't preload features for /assets/* but do for everything else
|
||||
config.flipper.preload = -> (request) { !request.path.start_with?('/assets/', '/ping') }
|
||||
config.flipper.strict = Rails.env.development?
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue