Setup

Connect Supabase to finish setup.

The app starts once two environment variables exist: PUBLIC_SUPABASE_URL and PUBLIC_SUPABASE_ANON_KEY. Locally they go in crm/.env; on Cloudflare Pages they go in the project's environment variables.

  1. Create a Supabase project in the Sydney region.
  2. Run supabase/migrations/0001_init.sql in the SQL editor.
  3. Copy the project URL and anon key from Settings → API.
  4. Set the variables and restart.