DEV Community


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

aleksandar874 profile image

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

juristr profile image
Juri Strumpflohner Author

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 something the server needs to give you at disposal.
Either via a static json deployed by the CI, or via an API etc..

Forem Open with the Forem app