I have to read environment.ts based on run mode. For example in dev i have environment.dev.ts, in QA i have environment.qa.ts, in uat i have environment.uat.ts files.
When starting AEM let's say in dev run mode then environment.dev.ts should read similarly for other run mode respective file to be read.
At present it always read environment.ts file only.
Please advise how to achieve it. Any help is highly appreciated.