lib/jets/middleware/default_stack.rb in jets-2.3.7 vs lib/jets/middleware/default_stack.rb in jets-2.3.8
- old
+ new
@@ -10,10 +10,10 @@
Stack.new do |middleware|
middleware.use Shotgun::Static if Jets.env.development?
middleware.use Rack::Runtime
middleware.use Jets::Controller::Middleware::Cors if cors_enabled?
middleware.use Rack::MethodOverride # must come before Middleware::Local for multipart post forms to work
- middleware.use Jets::Controller::Middleware::Reloader if Jets.env.development?
+ middleware.use Jets::Controller::Middleware::Reloader if Jets.config.hot_reload
middleware.use Jets::Controller::Middleware::Local # mimics AWS Lambda for local server only
middleware.use session_store, session_options
middleware.use Rack::Head
middleware.use Rack::ConditionalGet
middleware.use Rack::ETag