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
ruby-on-rails reactjs ruby-on-rails-5 webpack-2 webpack-dev-server


source to share


No one has answered this question yet

Check out similar questions:

1339
How can I rename a database column in Ruby on Rails migrations?
1203
Navigate programmatically using responsive router
1094
Loop inside React JSX
42
Do I need webpack-dev-server if I am using node server like express
ten
Why is the foreman's foreman ignoring the PORT environment variable?
3
Nested React 4 router not working on Webpack 3
1
React-Style doesn't work with webpack-dev-server. The style is not retrieved. Getting "Invariant violation: _registercomponent (...): Target
0
Rails 5.2.1 Webpacker Babel does not translate React
0
webpack-dev-server with basic configuration
0
Rails + React + Webpack load image



All Articles
Loading...
X
Show
Funny
Dev
Pics