Feature flags and safe releasesProLesson 30 of 45, about 8 min
- 1
- 2
- 3
- 4
- 5
- 6
- 7
The app: Relay, a CI/CD pipeline
Relayharbor / productionnew-billing-page: off
new-billing-page
The new billing page, shipped in build 418.Rollout
Off: everyone gets the old billing page.Other flags
FlagStateAge
team-invites-v2On, 100%since 2 Sep 2026
old-pdf-exportOn, 100%since 14 Mar 2025
The config and code behind the flag
flags.json read by the flag service, no build neededoff
{
"new-billing-page": {
"enabled": ,
"rollout": ,
"owner": "billing team",
"created": "2026-11-28"
},
"team-invites-v2": { "enabled": true, "rollout": 100, "created": "2026-09-02" },
"old-pdf-export": { "enabled": true, "rollout": 100, "created": }
}
page.tsx where the flag is checked
1// app/billing/page.tsx2const user = await currentUser();3if (flags.isOn("new-billing-page", user.id)) {4 return <NewBillingPage account={user.account} />;5}6return <BillingPage account={user.account} />;
The MagisterBuild 418 went to production at 10:02 with Harbor’s new billing page inside. Nobody sees it yet: the page checks a flag first, and the flag is off. Deploying puts code on the servers. Releasing decides who sees it. Open Deploys, then tap the flag’s enabled on the right.
Step 1 of 7Find the page nobody can see
- Open the Deploys tab
- Tap
enabledin flags.json
You’re not signed in, so this lesson won’t be saved to your path. Sign in free to keep your XP.