Simulacrum

Recipe — Supabase setup

End-to-end checklist for Supabase with Simulacrum-generated apps.

Steps

  1. Create a Supabase project and note connection strings.
  2. Add keys to .env.local as described in Supabase.
  3. Set database.adapter to supabase in simulacrum.config.ts.
  4. Run generated migrations against the linked database.
  5. Enable RLS policies aligned with your user IDs from better-auth.
  6. 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.