I am using docker so, in production mode I am using linked containers with URLs like "http://api:3000/" instead of "http://localhost:3000/" while in dev mode.
I would like to be able to use "http://api:3000/" if "ng build -prod" and stay with "localhost" while developing.
How can I do my if( "-prod" ) ?
Thanks for reading me, I hope my question is clear.
EDIT: Everything was explain in a commentary in environment.ts