NGROk with webpack + responsive to rail configuration

Currently rails 5.1 with webpacker gem using react webpacker and ngrok for rails port 3000. The problem is that react fails on custom ngrok domain route. After trying the setting config/webpacker.yml

in dev_server install development https: true

tried proxy.

Im getting https://0.0.0.0:8080/packs/hello_react.js net::ERR_INSECURE_RESPONSE

Tried starting wizard and putting web: bundle exec rails s webpacker: ./bin/webpack-dev-server

in procfile and starting wizard. the same release. but will work if i use localhost: 3000 but not ngrok generated.

+3


source to share





All Articles