interface FlagGuardOptions
Since 0.1.0

Options for the createFlagGuard factory.

Properties

optional
fallback: string

Fallback URL for a 302 redirect when the flag is off.

optional
statusCode: number

HTTP status code when no fallback is provided (default 404).

Static context override for the flag evaluation.

Usage

import { type FlagGuardOptions } from "feature-flags-plugin/src/index.ts";