I have an Angular app which uses environment.ts file to set stuff like urls of servers.
I know that I can use build configurations specified in angular.json to replace files at build time, e.g. replace environment.ts with environment.prod.ts.
I would like something similar with ng serve, e.g. launching
ng serve --configuration=production
and having environment.prod.ts replacing environment.ts.
I this possible? Are there better ways to drive with command lines parameters which settings are used in ng serve?