Skip to content

How do I connect Supabase?

Updated 20 August 2026·1 views

Connecting Supabase

  1. Go to supabase.com and create a project
  1. Go to Settings → API and copy your project URL and anon key
  1. In your .env.local:
\\\env NEXT_PUBLIC_DB_TYPE=supabase NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key NEXT_PUBLIC_SUPABASE_SERVICE_KEY=your-service-role-key \\\
  1. Run the app and go to http://localhost:3000/installer to finish setup — this also enables Row Level Security automatically.
Never expose your service_role key to the client.

Was this article helpful?