assembleco / slim

A (slim) System for Laboratory Information Management
https://stoic-pare-ea69d2.netlify.com/
0 stars 1 forks source link

Figure out a way around hard-coding an IP address in the `proxy` setting. #77

Open c-lliope opened 6 years ago

c-lliope commented 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.

c-lliope commented 6 years ago

At least on my system, the HTTP_PROXY environment variable isn't taking effect. Attempted with:

env HTTP_PROXY=<ip_address> yarn start