I am currently using ember-cli to build my production package and I am able to pass in the URI for which API to connect to at build time (staging or production … https://staging-api.foo.com:9887 and https://prod-api.foo.com respectively). But this requires me to rerun
ember build --environment=production to set to the API.
Is there a good way? or does anyone have any suggestions as to how to let my app discover the API at load time? Perhaps put something in index.html after the build, so I can just tweak that setting.
Basically, I want to build with environment=production, and then be able to deploy it twice without rebuilding, but still have each deploy point to a different API URI.