Closed mimischi closed 6 years ago
If you pass --change-origin
to the hotel add
command, the .dev
proxy will rewrite the Host
header of the request to match the host and port that the server is listening on.
Thanks! This works :)
For reference, using this hotel add
command resolves the issue:
hotel add 'yarn run dev --port $PORT' --name hn --change-origin
The app is then available via http://hn.dev
.
I've just setup a
webpack-dev-server
project viaThe config specifies that one can set
process.env.HOST
to override the defaulthost: localhost
. Is there currently any way to pass that variable from thehotel
CLI? I was not able to get it working this way.