Skip to content

configuration via environment variables #2625

Closed
@Pertel

Description

@Pertel

Hi
Is there a recommended way to provide configuration via environment variables, instead of hardcoding it in a specific environment..ts file, or rolling my own script to do it?

I'm not well versed in webpack, so perhaps there is a simple way to do it, which is not specific to angular-cli. On the other hand, the webpack configuration is mostly inaccessible, so perhaps that is not viable.

There are quite a few ways to do this of course, so I'm asking if there is a recommended / supported way of doing it, instead of everybody just rolling their own solutions.

Thanks

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