API Reference
Shows the APIs available in the Flags SDK
@vercel/flags
APIs for integrating flags with Vercel.
Learn more about these methods.
@vercel/flags/next
APIs for working with feature flags in Next.js.
flag
Declares a new feature flag.
precompute
Precomputes the value of a group of feature flags.
combine
Calculates the combinations of flags.
dedupe
Deduplicates work.
deserialize
Deserializes a feature flag.
evaluate
Evaluates a feature flag.
generatePermutations
Generates permutations of all options of a group of flags.
getPrecomputed
Gets precomputed values of a group of flags.
getProviderData
Turns flag definitions into provider data Vercel understands.
serialize
Serializes a feature flag.
setTracerProvider
Set an OpenTelemetry tracer provider.