It is possible to create multiple configuration files with @angular/cli.
As mentioned in docs custom configuration files can be add in the following way:
- create a
src/environments/environment.NAME.ts - add
{ "NAME": 'src/environments/environment.NAME.ts' }to theapps[0].environmentsobject in.angular-cli.json - use them via the
--env=NAMEflag on the build/serve commands.
So, you would probably need 6 config files for dev and 6 config files for prod.
And then to access those variables just import environment object from environment.ts file.