Skip to content
Dashboard

Vercel Edge Config is now generally available

A globally distributed data store for low latency experimentation.

import { NextResponse, NextRequest } from "next/server";
import { get } from "@vercel/edge-config";
export async function middleware(request: NextRequest) {
if (await get("showNewDashboard")) {
return NextResponse.rewrite(new URL("/new-dashboard", request.url));
}
}

Vercel Edge Config has a simple API to get started quickly, shown here with Edge Middleware.

LaunchDarkly and Vercel’s mutual enterprise customers now have a way to deploy feature flags and experiments at the edge with zero latency. Every company is becoming a software company and this integration will further our joint mission to empower companies to ship and iterate applications at lightning speed.
John Kodumal Co-Founder and CTO at LaunchDarkly
Combining Statsig with Next.js and Vercel Edge Config unlocks a high-performance feature management and experimentation engine in a way that was just not possible before. Our customers are using the integration to control releases and automate experimentation with near zero latency. The impact is immediate when running experiments on landing pages, UX optimizations, URL redirects, and more.
Vijaye Raji Founder and CEO at Statsig
The globally consistent and dynamic nature of the data storage offered by Edge config makes it the perfect fit for Split feature flags SDK to work at the edge, providing users near zero latency to serve both feature flag and experimentation use cases for Vercel users leveraging middleware logic.
Pato Echague Co-Founder and CTO at Split

Link to headingDynamic routing with Edge Middleware

import { getAll } from "@vercel/edge-config";
export async function middleware(request: Request) {
const [userAgents, ipAddresses] = await getAll(["userAgents", "ipAddresses"]);
if (
userAgents.includes(request.headers.get("user-agent")) ||
ipAddresses.includes(request.ip)
) {
return new Response("Denied", { status: 403 });
}
}

Vercel Edge Config can be used to implement advanced security rules like geolocation blocking.

Link to headingGet Started with Edge Config