I would like to use the predefined Docker Environment variable inside 'environment.prod.ts' from Angular-Cli (1.0.0-beta.16).
usecase:
environment.prod.ts:
export const environment = {
production: true,
host1: $ENV1,
host2: $ENV2
};
my Angular CLI-based application depends on the .prod.ts environment for retrieving host information related to backend services (host1, host2), and the application goes through various environments such as DEV, TEST, QA, PROD ...
$ ENV1, $ ENV2 are provided as environment variables during Docker startup
Is it possible? If not, please correct my understanding and suggest any other alternative solutions.
sivaD source
share