Skip to content
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

Support yarn start server being accessed at subpath #2543

Closed
moodysalem opened this issue Jun 15, 2017 · 2 comments
Closed

Support yarn start server being accessed at subpath #2543

moodysalem opened this issue Jun 15, 2017 · 2 comments

Comments

@moodysalem
Copy link

I am trying to incorporate create-react-app to migrate an existing node server project

I want to do so by having all requests to /spa/* be reverse proxied to a separate single page application server

It's easy enough to do the reverse proxy with the production build files, thanks to the homepage package.json attribute-I can actually put /spa/ in there and the index.html is generated with the correct paths

However, in development I want to be able to run yarn start alongside the existing node server and proxy /spa/* to localhost:3000/* and see the script and link tags generated to /spa/ subpaths, e.g. /spa/static/js/main.[hash].js

@gaearon
Copy link
Contributor

gaearon commented Jun 15, 2017

Is this the same as #1582?

@moodysalem
Copy link
Author

Yep, thanks @gaearon

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants