5 ms·
Should you use a tool at all? One code file with the flags, and a small piece of router middleware that allows the URL to override the value of flags, and then
by larsthorup 6y ago
Should you use a tool at all? One code file with the flags, and a small piece of router middleware that allows the URL to override the value of flags, and then just if statements. This has served me well on the past 3 frontend projects I have built.
- maps7 6y agoSo the URL can turn on different features?
- larsthorup 6y agoYes, using #feature:name=value. This makes it easy to share a URL to someone who wants to test a not yet enabled feature