Human-readable name for the flag. Echoed back on ctx.featureFlag.name and the default rejection body.
Decide whether the flag is enabled for this request.
Return true/false for a simple on-off check, or a FeatureFlagVerdict
to also record a variant or provider payload. Async is fine.
OptionalrejectHTTP status when the flag rejects. Default is 404 — "this feature doesn't exist for you yet" — a softer reveal than 403 that avoids tipping off attackers about the existence of gated functionality.
OptionalrejectBody when the flag rejects.
Per-instance configuration the consumer passes to
withFeatureFlag(config, handler).Keep this surface small — every field becomes part of the public API.