There's a little bit of cleverness there to set the websocket url based on the http url provided also. This is a pretty canonical way to do this in react applications over static config files that are being checked into the repo. See https://create-react-app.dev/docs/adding-custom-environment-variables/
Description
This PR makes it possible to point the client app to a given server url (specified at build time)
Examples of how this works with our current npm scripts
or
There's a little bit of cleverness there to set the websocket url based on the http url provided also. This is a pretty canonical way to do this in react applications over static config files that are being checked into the repo. See https://create-react-app.dev/docs/adding-custom-environment-variables/
Checklist
npm test
passesnpm run build
works