Platform
Feature flags
Declare a flag in config and check it on the server or the client. Flags resolve in a clear order: user override, workspace override, global on or off, percentage rollout, then the config default.
What you get
- Sticky percentage rollouts per workspace or user
- Overrides by workspace slug or user email, all audited
- isEnabled() on the server and useFlag() on the client
- Shipped flags for AI chat, API keys, outgoing webhooks and referrals
Turn it on
- flagsConfig in config.ts
Where it lives
lib/flags.tsapp/(admin)/admin/flags