Skip to content

Commit

Permalink
fix: 初期化のタイミング調整
Browse files Browse the repository at this point in the history
  • Loading branch information
aki77 committed Nov 7, 2023
1 parent 1a93f39 commit 4101c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sg_fargate_rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Railtie < ::Rails::Railtie
load File.expand_path('../tasks/sg_fargate_rails.rake', __dir__)
end

initializer :initialize_sg_fargate_rails do |app|
initializer :initialize_sg_fargate_rails, after: :load_config_initializers do |app|
if SgFargateRails.config.middleware_enabled_rails_envs.include?(Rails.env)
app.config.middleware.insert 0, SgFargateRails::AdjustCloudfrontHeaders
app.config.middleware.insert 1, SgFargateRails::Healthcheck
Expand Down

0 comments on commit 4101c7a

Please sign in to comment.