LaunchDarkly is now available on the Vercel Marketplace, allowing you to quickly get started with feature flags without additional setup. You can:
Sync flags into Global Config and evaluate them locally
Target releases by user, attribute, or segment
Run experiments with metrics, and roll back with a kill switch
View and override flags from the Vercel Toolbar with the Flags Explorer
To get started, run vercel install launchdarkly, add the @flags-sdk/launchdarkly adapter, and declare a flag with the Flags SDK:
import { flag } from "flags/next";
import { ldAdapter, type LDContext } from "@flags-sdk/launchdarkly";
export const exampleFlag = flag<boolean, LDContext>({
identify: () => ({ key: "user-123" }),
adapter: ldAdapter.variation(),
Feature flag declared with the LaunchDarkly adapter
Using a coding agent? Hand it this prompt:
Add LaunchDarkly from the Vercel Marketplace, or read the adapter docs.