- Add
--early-hints
to Puma, and--https
to webpack-dev-server to.env
e.g.
RAILS_STARTUP="puma -w 5 -p $PORT --preload --early-hints"
WEBPACK_OPTS="--https"
- change
<meta http-equiv ="
inbase.html.erb
to
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1 style-src 'self' http://* 'unsafe-inline'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval'">
- Add the next line to
assets.rb
Rails.configuration.webpack.dev_server.https = true
- Setup an HTTP/2 Proxy such as H2O. guide
?