DEV Community

Discussion on: Compile-time vs. Runtime configuration of your Angular App

Collapse
 
aleksandar874 profile image
aleksandar87

How would you do if every feature had a switch for dev and prod?

Collapse
 
juristr profile image
Juri Strumpflohner

That's more of a use case for feature toggles (there are a couple of libs out there). But in the end, the feature toggle config could be downloaded via this runtime config I describe in the post & then processed.
The various configs for dev, prod etc...is something the server needs to give you at disposal.
Either via a static json deployed by the CI, or via an API etc..