Islam Benkhelifa’s Post

For Angular dev, since Angular doesn't support runtime env variables out of the box, the default way of deploying an app into multiple environments is to have environment files in our apps. For each deployment env we would add an extra environment file ( environment.dev.ts, environment.staging.ts, environment.prod.ts, ...) things can get worse if we have multiple clients who are using the same app and each one of them needs his instance. I found this article that explains a workaround for having runtime env variables in a relatively clean and elegant way.

Runtime environment configuration with Angular

Runtime environment configuration with Angular

dev.to

To view or add a comment, sign in

Explore topics