Open c-lliope opened 6 years ago
Our frontend can currently only connect to the backend by going through a Webpack proxy.
We want to dynamically set the backend's address without making it a part of the public codebase.
A quick search turned up https://stackoverflow.com/questions/39649298/set-proxy-in-package-json-to-env-variable, which looks straightforward.
At least on my system, the HTTP_PROXY environment variable isn't taking effect. Attempted with:
HTTP_PROXY
env HTTP_PROXY=<ip_address> yarn start
Our frontend can currently only connect to the backend by going through a Webpack proxy.
We want to dynamically set the backend's address without making it a part of the public codebase.
A quick search turned up https://stackoverflow.com/questions/39649298/set-proxy-in-package-json-to-env-variable, which looks straightforward.