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.
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.
It seems like it should be something pretty common, but can't find any info.