Skip to content

Configurable environment settings #24578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gabrielw007 opened this issue Jan 19, 2023 · 2 comments
Closed

Configurable environment settings #24578

gabrielw007 opened this issue Jan 19, 2023 · 2 comments

Comments

@gabrielw007
Copy link

Which @angular/* package(s) are relevant/related to the feature request?

No response

Description

There is a nice ability in angular to define multiple environments and have a different build per each of them.
The only problem is that environment file is NOT configurable on prod but there are settings need that ability for us,
for example: "serverApiUrl" which we need to be configurable on prod.

So, in addition to what we have today, we need an ability to define configurable settings according to the environment used.

Proposed solution

various options i can think about:

  • enable defining configurable properties in environment files
  • enable creating a config file per environment and using it in code like environment with file replace in angular.json like environment

Alternatives considered

currently we can create a "configFile" property in all environments, but all those files are assets, so all of them are deployed during CI\CD although a specific environment has been built.

@alan-agius4 alan-agius4 transferred this issue from angular/angular Jan 19, 2023
@alan-agius4
Copy link
Collaborator

Duplicate of #4318

@alan-agius4 alan-agius4 marked this as a duplicate of #4318 Jan 19, 2023
@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 19, 2023
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants