Skip to content

Commit 879bbd5

Browse files
committed
Move Propshaft::Server middleware before ActionDispatch::Executor`
`ActionDispatch::Static` is only added if `config.public_file_server.enabled` is true.
1 parent 8ebcd45 commit 879bbd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/propshaft/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Railtie < ::Rails::Railtie
6666
initializer "propshaft.assets_middleware", group: :all do |app|
6767
app.assets = Propshaft::Assembly.new(app.config.assets)
6868
if config.assets.server
69-
app.middleware.insert_after ::ActionDispatch::Static, Propshaft::Server, app.assets
69+
app.middleware.insert_before ::ActionDispatch::Executor, Propshaft::Server, app.assets
7070
end
7171
end
7272

0 commit comments

Comments
 (0)