the board · setup
wire up
supabase
the board uses supabase for auth + realtime db. one-time setup, then we're live.
- 01make a supabase projecthead to supabase.com/dashboard, click new project, region: us-east.
- 02paste the schemain the project, open SQL editor → paste the contents of
supabase/schema.sql→ run. - 03copy your keysin project settings → API, grab the project URL and the anon public key.
- 04add to .env.localappend to
.env.localat the project root:NEXT_PUBLIC_SUPABASE_URL=https://xxx.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbG... NEXT_PUBLIC_SITE_URL=http://localhost:3000
- 05set the redirect urlin supabase auth → URL configuration, add
http://localhost:3000/board/callbackto redirect URLs. (and your prod url when you ship.) - 06restart the dev server
npm run devpicks up the new env vars on next start. after that, pull up the board again.
full notes
see supabase/SETUP.md for invite-email config, prod env vars, and the storage / service-role notes.