A NestJS app needs feature flags that can be toggled without redeployment. Which design best achieves this?
-
A
Store flags in a Redis/database store, inject a FeatureFlagService, and guard feature branches with it
-
B
Use environment variables baked into the Docker image at build time
-
C
Use TypeScript conditional compilation with @ifdef comments
-
D
Hard-code boolean flags in a config file committed to the repo