chore(flipper): update config for flipper 1.3

This commit is contained in:
Colin Darie 2024-07-31 15:58:20 +02:00
parent cb6e243643
commit a316600e7a
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -52,12 +52,13 @@ Flipper.configure do |config|
Flipper::Adapters::ActiveSupportCacheStore.new( Flipper::Adapters::ActiveSupportCacheStore.new(
Flipper::Adapters::ActiveRecord.new, Flipper::Adapters::ActiveRecord.new,
ActiveSupport::Cache::MemoryStore.new, ActiveSupport::Cache::MemoryStore.new,
expires_in: 10.seconds 10.seconds
) )
end end
end end
Rails.application.configure do Rails.application.configure do
config.flipper.actor_limit = 500 # default is 100 but hide_instructeur_email feature has ~478
# don't preload features for /assets/* but do for everything else # don't preload features for /assets/* but do for everything else
config.flipper.preload = -> (request) { !request.path.start_with?('/assets/', '/ping') } config.flipper.preload = -> (request) { !request.path.start_with?('/assets/', '/ping') }
config.flipper.strict = Rails.env.development? config.flipper.strict = Rails.env.development?