title: Using a proxy to direct requests to backend vs using a different env?
body: <p>I have a React application that reaches out to an API hosted on a different machine. The address of the machine hosting the backend will change from client to client. I currently use a script that builds a version of the React application with different env's for each of the clients. However as the number of clients is increasing, so is the number distinct builds I need to support.</p>
  
  <p>My question is then: Which is preferable, continuing with my approach of one set of env's per client, or using a proxy (likely nginx) to redirect requests to the backend and making the setup of the proxy something for the client to do?</p>
  
  <p>My only concern thus far with the second approach is that it means that nginx will be running in production, but not in development - which could potentially lead to production only issues that are difficult to resolve.</p>