Feature Toggle (Node.js)
You’re about to launch a new feature and want the rollout to be smooth. With Configly, you can gate the feature with a configurable boolean. You decide precisely when the feature goes live and can always disable it in moments if need be.
Store a feature toggle as a boolean in Configly
Configly allows the storage of multiple types: string, number, boolean and JSON.
In this example, we built an Express app with a remote feature toggle. The toggle enables adding styling to text returned by an endpoint.
The developers can safely deploy this code with the feature disabled and turn it on only when ready.
The toggle can stay in the code. If there is ever a need to revert the feature (such as a bad incident or bug), it can be done near instantly through the flip of a switch.