Vercel Flags is now in public beta
Source: Vercel Blog
Overview
Vercel Flags is a feature‑flag provider built into the Vercel platform. It lets you create and manage feature flags with targeting rules, user segments, and environment controls directly in the Vercel Dashboard.
The Flags SDK provides a framework‑native way to define and use these flags within Next.js and SvelteKit applications, integrating directly with your existing codebase.
Using the Flags SDK
Defining a flag (flags.ts)
import { vercelAdapter } from "@flags-sdk/vercel";
import { flag } from "flags/next";
export const showNewFeature = flag({
key: "show-new-feature",
decide: () => false,
description: "Show the new dashboard redesign",
adapter: vercelAdapter(),
});
Consuming the flag in a page (app/page.tsx)
import { showNewFeature } from "~/flags";
export default async function Page() {
const isEnabled = await showNewFeature();
return isEnabled ? :
;
}
OpenFeature adapter
For teams using other frameworks or custom back‑ends, the Vercel Flags adapter supports the OpenFeature standard, allowing you to combine feature flags across various systems while maintaining consistency.
Example (app.ts)
import { OpenFeature } from "@openfeature/server-sdk";
import { VercelProvider } from "@vercel/flags-core/openfeature";
// Set up the provider and client
await OpenFeature.setProviderAndWait(new VercelProvider());
const client = OpenFeature.getClient();
// Evaluate flags
const enabled = await client.getBooleanValue("show-new-feature");
Pricing
Vercel Flags is priced at $30 per 1 million flag requests (equivalent to $0.00003 per event). A flag request is any request to your application that reads the underlying flags configuration. Multiple flag evaluations within a single request to the same source project still count as one flag request. See the full pricing details on the limits and pricing page.
Availability
Vercel Flags is now in public beta and available to teams on all Vercel plans.
Learn more about Vercel Flags to get started with feature‑flag management.