I'll explain. At my company we use featurehub for feature flagging. The SDK (OOP) doesn't work in NextJS middleware because it's not a node environment 🙄 So I rewrote it as plain functions. One requests and returns the object of data, and all others take that as the first arg.
If anyone is looking for a feature flagging solution that is open-source, cloud native and works with many DBs and OAuth providers, check out FeatureHub: featurehub.io/#webdevelopment#frontenddev
FeatureHub 1.5.4 is out! Our first release of 2022! 🚀🚀 Includes various fixes and improvements like base Oracle DB support and ability to run FeatureHub Admin app for clients who are restricted by not having public internet access. github.com/featurehub-io/fea…#opensource#devops