Skip to content
Dashboard

Expanding the experimentation ecosystem with Edge Config and LaunchDarkly

, Alli Pope

Link to headingVercel Edge Config

Link to headingExperimentation ecosystem

LaunchDarkly integration on Vercel

LaunchDarkly Enterprise customers can install the LaunchDarkly integration to start exporting flag configurations to Vercel Edge Config.

Get started

app/page.tsx
import { init } from '@launchdarkly/vercel-server-sdk'
import { createClient } from '@vercel/edge-config'
import { Dashboard, LegacyDashboard } from "./dashboards"
const edgeClient = createClient(process.env.EDGE_CONFIG)
const ldClient = init("YOUR CLIENT-SIDE ID", edgeClient)
export const runtime = "edge"
export default async function Home() {
await ldClient.waitForInitialization()
const ldContext = { kind: 'org', key: 'my-org-key' }
const showNewDashboard = await ldClient.variation('new-dashboard', ldContext, true)
return showNewDashboard ? <Dashboard /> : <LegacyDashboard />
}

The combination of Vercel Edge Config and the LaunchDarkly integration for Vercel lets us update our feature flagging configurations comfortably and automatically push them to our Edge Config store in real time. We are able to change the UI and behavior of our application without the need to re-deploy, which keeps us highly flexible. The low latency that Edge Config provides reduces the overhead of fetching flag configurations over HTTP, allowing us to have minimal latency and create a better experience for our users.
Vincent Derks Lead Engineer at Joyn

Link to headingGet started

Ready to deploy?