bestit / flagception-bundle

Feature flags on steroids!
MIT License
210 stars 42 forks source link

Activator based on environment values? #87

Open dsentker opened 3 years ago

dsentker commented 3 years ago

The Environment activator does a lookup if a specific environment variable exists. It would be useful to allow a comparison for this environment value.

Use case: I want to enable a feature in dev and preproduction, but not in prod environment.

Do i have to create a custom activator?

migo315 commented 3 years ago

This is exactly what the Environment Activator is for. You set the ENV variable to true on Dev and Stage / Preproduction and to false on Prod. Or am I just misunderstanding your request?