Environment Variables

Setup

Copy the example file:

cp .env.example apps/web/.env.local

Then fill in every value in apps/web/.env.local.

Full reference

| Variable | Where to get it | |---|---| | NEXT_PUBLIC_SUPABASE_URL | Supabase → Settings → API → Project URL | | NEXT_PUBLIC_SUPABASE_ANON_KEY | Supabase → Settings → API → anon/public key | | SUPABASE_SERVICE_ROLE_KEY | Supabase → Settings → API → service_role key | | NEXT_PUBLIC_PARTYKIT_HOST | Printed by npx partykit deploy | | GITHUB_CLIENT_ID | GitHub OAuth App → Client ID | | GITHUB_CLIENT_SECRET | GitHub OAuth App → Client Secret | | NEXT_PUBLIC_APP_URL | Your Vercel app URL (or http://localhost:3000) |

Verify your setup

Start the dev server and open /setup:

pnpm dev
# open http://localhost:3000/setup

Click Verify on each step. All four should show a green checkmark before deploying.