Skip to Content
DocsReferenceEnvironment Variables

Environment Variables

DriftGrid works with zero configuration locally. Environment variables enable cloud features.

Core

VariableRequiredPurpose
NEXT_PUBLIC_SUPABASE_URLFor cloudSupabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEYFor cloudSupabase anon/public key
SUPABASE_SERVICE_ROLE_KEYFor cloudSupabase admin key (server-side)
DRIFT_CLOUDOptionalSet to 1 to enable cloud mode locally

Billing

VariableRequiredPurpose
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYFor billingStripe public key
STRIPE_SECRET_KEYFor billingStripe secret key

MCP

VariableRequiredPurpose
DRIFTGRID_URLOptionalMCP 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