Feature flag rollouts
Ship features to subsets of your user base without redeploying. Toggle, measure, and roll back in seconds.
1. Define the flag
Create a flag in the Meridian dashboard under Experiments → Flags. Give it a key like beta_dashboard_v2.
2. Target your audience
Choose a rollout percentage or target by license tier, geography, or a custom attribute you pass at runtime. Meridian evaluates rules server-side before the page renders.
3. Consume in code
Call the Meridian edge helper inside your page or API route. The flag value is resolved from the request context — no client-side flicker.
import { getFlag } from '@meridian/edge'
export default async function Dashboard() {
const v2 = await getFlag('beta_dashboard_v2', req)
return v2 ? <V2 /> : <V1 />
}4. Monitor & roll back
Every evaluation is logged. Watch error rates and latency in the flag detail view. If something breaks, set the flag to 0% — the change takes effect on the next request with zero propagation delay.
Pro tip
Combine flags with Meridian's built-in A/B analytics to automatically surface which variant drives more conversions.