You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ability to use/change environment files after build #52994
Which @angular/* package(s) are relevant/related to the feature request?
No response
Description
environment files always felt bit weird to me, they are only used at build time and cannot be modified at runtime. there are couple of tedious options like creating json file then having app initializer to read contents of that file to set env values.
there have been many blog posts on this and I think there should be lot easier way built into the framework.
would be nice if environment files were in separate json file after building the app, so we could change values for different pipelines and environments.
Proposed solution
running ng build produces environment.json file, which we can modify, then application automatically looks into that file for correct values.
Alternatives considered
alternatives would be solutions we have now, using app initializer and local json file and so on.
Activity
[-]ability to use environment files at runtime, [/-][+]ability to use/change environment files after build[/+]alan-agius4 commentedon Nov 17, 2023
Duplicate of angular/angular-cli#4318
angular-automatic-lock-bot commentedon Dec 18, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.