- Add
--early-hintsto Puma, and--httpsto webpack-dev-server to.enve.g.
RAILS_STARTUP="puma -w 5 -p $PORT --preload --early-hints"
WEBPACK_OPTS="--https"
- change
<meta http-equiv ="inbase.html.erbto
<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
?