Skip to content

ability to use/change environment files after build #52994

Closed as not planned
Closed as not planned

Description

@DimitriTsikaridze

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

  1. changed the title [-]ability to use environment files at runtime, [/-] [+]ability to use/change environment files after build[/+] on Nov 17, 2023
  2. alan-agius4 commented on Nov 17, 2023

    @alan-agius4
    Contributor
  3. angular-automatic-lock-bot commented on Dec 18, 2023

    @angular-automatic-lock-bot

    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.

  4. locked and limited conversation to collaborators on Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions