title: React + Webpack: Where to configure REST Endpoints
body: <p>I have a React+Flux app and using Webpack. The REST API I am consuming is served by a different server and I am trying to figure out where I could specify the backend endpoint constant depending whether I am on dev or prod environments.</p>
  
  <p>Currently, for dev, I have harcoded the URL to be localhost:port, but when I deploy, it still tries to access the endpoints at localhost.</p>
  
  <p>It seems like it should be something pretty common, but can't find any info.</p>