Supabase Cloud Setup
For production deployments, Supabase Cloud is the recommended database provider.
Create a Project​
- Go to supabase.com and sign in.
- Click "New project".
- Choose an organisation, project name, database password, and region.
- Wait for the project to initialise (approximately 1 minute).
Initialise the Schema​
- In the Supabase Dashboard, go to SQL Editor.
- Click "New query".
- Copy the contents of
supabase_setup.sqlfrom the project root. - Paste and run the query.
This creates all tables, enables the pgvector extension, installs the hybrid search function, and sets up Row Level Security policies.
Get Your Credentials​
- Go to Project Settings → API.
- Copy:
- Project URL → use as
NEXT_PUBLIC_SUPABASE_URLandPLASMO_PUBLIC_SUPABASE_URL - anon public key → use as
NEXT_PUBLIC_SUPABASE_ANON_KEYandPLASMO_PUBLIC_SUPABASE_ANON_KEY
- Project URL → use as
Enable Email Auth (Optional)​
For development, you may want to disable email confirmation:
- Go to Auth → Providers → Email.
- Toggle "Confirm email" off.
For production, keep email confirmation enabled.
Database Migrations​
The project uses Supabase migrations in supabase/migrations/. To apply all migrations to your cloud project:
supabase link --project-ref your-project-ref
supabase db push
Or apply them manually via the SQL Editor in the dashboard.