code: function initFeatureFlags(enabled) {
    return function features(req, res, next) {
      if (req.get('x-env') !== 'production') return next();
      if (enabled && enabled !== req.cookies.features) res.cookie('features', enabled);
      next();
    };
  }
docs: Initialize the feature flags middleware