Archived
1
0

FAQ.md: Document wds problem with create-react-app and pathProxy.ts

This commit is contained in:
Anmol Sethi 2021-01-11 14:36:34 -05:00
parent ba4a24809c
commit 9efcf7f3ce
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB

View File

@ -239,6 +239,12 @@ create-react-app of the path at which you are serving via `homepage` field in yo
Then visit `https://my-code-server-address.io/proxy/3000` to see your app exposed through Then visit `https://my-code-server-address.io/proxy/3000` to see your app exposed through
code-server! code-server!
Unfortunately `webpack-dev-server`'s websocket connections will not go through as it
always uses `/sockjs-node`. So hot reloading will not work until the `create-react-app`
team fix this bug.
Highly recommend using the subdomain approach instead to avoid this class of issue.
## Multi-tenancy ## Multi-tenancy
If you want to run multiple code-servers on shared infrastructure, we recommend using virtual If you want to run multiple code-servers on shared infrastructure, we recommend using virtual