Environment Variables
DriftGrid works with zero configuration locally. Environment variables enable cloud features.
Core
| Variable | Required | Purpose |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL | For cloud | Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY | For cloud | Supabase anon/public key |
SUPABASE_SERVICE_ROLE_KEY | For cloud | Supabase admin key (server-side) |
DRIFT_CLOUD | Optional | Set to 1 to enable cloud mode locally |
Billing
| Variable | Required | Purpose |
|---|---|---|
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY | For billing | Stripe public key |
STRIPE_SECRET_KEY | For billing | Stripe secret key |
MCP
| Variable | Required | Purpose |
|---|---|---|
DRIFTGRID_URL | Optional | MCP server target. Default: http://localhost:3000 |
Behavior
- No env vars → fully local, filesystem-only, free tier, no auth
- Supabase vars → cloud features enabled on Vercel (auto-detected) or when
DRIFT_CLOUD=1 - Stripe vars → pricing page shows upgrade flow, checkout works
- All vars → full production setup with auth, billing, cloud sync, sharing
Last updated on