@supabase/middleware - v0.2.0
    Preparing search index...

    Interface FeatureFlagContribution

    Shape contributed at ctx.featureFlag after a successful evaluation.

    enabled: true is encoded in the type — the handler only ever sees this shape when the flag admitted, so if (!ctx.featureFlag.enabled) is a dead branch by construction. The contribution shape is the contract this middleware offers downstream handlers.

    interface FeatureFlagContribution {
        name: string;
        enabled: true;
        variant: string | null;
        payload: unknown;
    }
    Index
    name: string

    The flag's name, as passed to withFeatureFlag.

    enabled: true

    Always true — this shape is only produced on admission.

    variant: string | null

    A/B test variant, if the verdict provided one.

    payload: unknown

    Provider-specific payload, if the verdict provided one.