Currently environment variables are baked into the bundle (or so I assume, given that they need to be present during build).
Consider writing them into window like so:
https://create-react-app.dev/docs/title-and-meta-tags#injecting-data-from-the-server-into-the-page
We can then replace them just before starting the web server.