Aurelia comes with 3 environments already set for you.
Dev (default)
Stage
Prod
you can run it by using
au run
au run --env stage
au run --env prod
If you do like that you just set the base url on the dev.js, stage.js and prod.js files and it will get the correct file based on the way you run the project.