Recipe — Supabase setup
End-to-end checklist for Supabase with Simulacrum-generated apps.
Steps
- Create a Supabase project and note connection strings.
- Add keys to
.env.localas described in Supabase. - Set
database.adaptertosupabaseinsimulacrum.config.ts. - Run generated migrations against the linked database.
- Enable RLS policies aligned with your user IDs from better-auth.
- Smoke-test sign-up, a tenant-scoped query, and a webhook if applicable.
Test RLS with a non-service role client before launch; service role bypasses RLS.