require_dependency "#{Rails.root}/lib/development/dev_server_proxy"
host = Features.hot_loading? && Rails.env.development? ? "localhost:8080" : "localhost:3000"
if not Rails.env.production?
  Rails.application.config.middleware.use WebpackDevServerProxy, dev_server_host: host
end


host = Features.hot_loading? && Rails.env.development? ? "localhost:8080" : "localhost:3000"
if not Rails.env.production?
  require_dependency "#{Rails.root}/lib/development/dev_server_proxy"
  Rails.application.config.middleware.use WebpackDevServerProxy, dev_server_host: host
end


Fix dev proxy server initializer
Fix dev proxy server initializer

In production, Rack::Proxy is not available, so requiring it will cause an error. I hit an error while trying to do a Capistrano deployment. Doing the require only in non-production environments should fix it.
