We leveraged the remoteEnv option in the environment.ts to have a separate appconfig that plays better with our CI/CD for setting all the options you mentioned:
remoteEnv: {
url: './assets/appconfig.json',
mergeStrategy: 'overwrite'
}
Was able to figure it out. Thanks for your help.