-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sockjs prefix config #911
Sockjs prefix config #911
Conversation
I need some guidance, in index.js for the client that gets built, i'm wondering var socketUrl = url.format({
protocol: protocol,
auth: urlParts.auth,
hostname: hostname,
port: (urlParts.port === "0") ? self.location.port : urlParts.port,
pathname: urlParts.path == null || urlParts.path === "/" ? "/sockjs-node" : urlParts.path
}); in what scenario does what other scenarios involve |
updated to take a stab at this. it seems like the urlParts.path woudl be used when you pass a query string while including the hot client file. I am not sure this change needs to handle that scenario? |
also added an example doing it, although I can't seem to figure out adding historyapifallback into the mix to fully show a subapp. any ideas? |
Codecov Report
@@ Coverage Diff @@
## master #911 +/- ##
==========================================
+ Coverage 72.25% 72.31% +0.05%
==========================================
Files 4 4
Lines 465 466 +1
Branches 140 141 +1
==========================================
+ Hits 336 337 +1
Misses 129 129
Continue to review full report at Codecov.
|
@SpaceK33z what are your thoughts on this? facebook/create-react-app#1887 depends on this being in place. |
Pinging @d3viant0ne; we'd love to see some feedback/progression on this PR so we can land facebook/create-react-app#1887. |
@kellyrmilligan would you be available to bring this up to date if we can get the ball rolling? |
Yes I can spend some time on it for sure. Been meaning to try and more directly ping someone so thanks for that |
@kellyrmilligan - Get it rebased if you don't mind and we'll get it queued up. |
🤘 |
@d3viant0ne @Timer updated to latest master. I've only been a consumer of webpack dev server in the past, so let me preface this pr with that. I am not sure i'm using the proper variable in the client side portion of this to accommodate the prefix. |
FYI - This hasn't been forgotten, most of the people that can pick this up & actually do something with it are all busy i.r.l. I was hoping to get this done without having to ping Kees but it's looking like that's the way it's going to have to be. |
We wanted to get some more eyes on this, but after talking with @d3viant0ne we agreed that it was OK to merge. Keep an eye out for a new minor version of the module tomorrow. |
Just updated my deps, and looks like this broke my app:
|
@the-spyke that's a bummer and I'm sorry that happened. But without for more info that's not very helpful. I'd suggest opening a new issue, following the issue template, and outlining more. Consider adding an example that would allow developers to reproduce the errors you're seeing. |
An issue about this has been opened: #1021 |
This reverts commit ccd113a.
What kind of change does this PR introduce?
This adds the capability to prefix the url that
sockjs-node
is served from. This is useful for having multiple applications in development being behind a reverse proxy.Did you add or update the
examples/
?Summary
#909
Does this PR introduce a breaking change?
Other information