You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for a way to change the public path of the socket. By default the hot reloading assets come out at http://localhost:8080/sockjs-node/*. But I have a proxy for these assets and for me everything is hosted on http://localhost/webpackdevserver/sockjs-node/*. But internally on my server this proxy is mapping http://localhost/webpackdevserver/sockjs-node/* to http://localhost:8080/sockjs-node/. So the server is working as expected but I'm having problem in decoupling the setting where the webpack-dev-server is hosting and at which url it should look for these assets.
Actual Behavior
Only when I change the code in in client/index.jsline 193-199 to the the second snippet I can get everything to work. I found no way of alternatively changing these settings. Could we maybe use different settings for setting the socketUrl in the config?
The text was updated successfully, but these errors were encountered:
@JohannesSanders thanks for stopping in. it looks like you might be new here; searching the issues is always a great place to start, and we recommend using multiple different terms if nothing comes up pertaining to your issue. If all else fails, use the search input at the top of the page, set to "This repository" and you'll get results that covers code, pull requests, and issues.
However in this case you're looking for the same result as #1021. please read that conversation and you'll find that pending changes aim to do exactly what you're seeking to do. PR #911 was meant to solve that, but because of issues laid out in #1021, it had to be rolled back.
We're going to close this one in favor of the aforementioned issue, so please contribute any additional discussion you'd like to, on that other issue.
Code
Expected Behavior
I'm looking for a way to change the public path of the socket. By default the hot reloading assets come out at
http://localhost:8080/sockjs-node/*
. But I have a proxy for these assets and for me everything is hosted onhttp://localhost/webpackdevserver/sockjs-node/*
. But internally on my server this proxy is mappinghttp://localhost/webpackdevserver/sockjs-node/*
tohttp://localhost:8080/sockjs-node/
. So the server is working as expected but I'm having problem in decoupling the setting where the webpack-dev-server is hosting and at which url it should look for these assets.Actual Behavior
Only when I change the code in in
client/index.js
line 193-199 to the the second snippet I can get everything to work. I found no way of alternatively changing these settings. Could we maybe use different settings for setting the socketUrl in the config?The text was updated successfully, but these errors were encountered: