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 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
The text was updated successfully, but these errors were encountered:
I am trying to incorporate
create-react-app
to migrate an existing node server projectI want to do so by having all requests to
/spa/*
be reverse proxied to a separate single page application serverIt'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 pathsHowever, in development I want to be able to run
yarn start
alongside the existing node server and proxy/spa/*
tolocalhost:3000/*
and see the script and link tags generated to/spa/
subpaths, e.g./spa/static/js/main.[hash].js
The text was updated successfully, but these errors were encountered: