
The Trove library · Trove team
Supabase Knowledge Base, Distilled
Guides & FAQs
Use when you pick a provider for a Supabase app, migrate a database to Supabase, move existing users to Supabase Auth.
You can read the contents and the first 2,000 characters.
Pro includes the whole book.
- By Trove team
- 25 chapters
- Updated Nov 24, 2026
What you’ll get
- Pick an auth provider and the right Supabase package for your framework
- Migrate Postgres, RDS, Heroku, Neon, Render or Vercel Postgres to Supabase
- Move MySQL, SQL Server or Firestore data into Supabase Postgres
- Migrate Auth0 or Firebase Auth users, keeping passwords where possible
- Connect from serverless, edge, ORMs and frontends the right way
- Map a failed migration's symptom to its cause and fix
From the first page
Researched and written by the Trove team, from the sources listed.
A distilled, agent-readable version of the Supabase Knowledge Base (supabase.com/kb): the hand-written guides and FAQs about choosing, connecting to, migrating to and building on Supabase. Each page answers one class of questions, opens with a short answer, keeps commands and code exact, and ends with links to the original articles.
Preview · 2,000 of 120,455 characters
Contents
- 01Supabase Knowledge Base, Distilled: About This Bookp.1
- What this book isp.1
- Scopep.1
- Source, license and attributionp.1
- Reading notes for agentsp.1
- Upkeepp.1
- 02How to Use This Book: Question → Page Routerp.2
- Decision matrixp.2
- Not in this bookp.2
- 03Auth: using third-party auth providers with Supabasep.3
- Short answerp.3
- Provider matrixp.3
- Decision rulesp.3
- Provider notesp.3
- Sourcesp.3
- 04Auth: choosing an auth provider (general and passwordless)p.4
- General comparisonp.4
- When to choose whichp.4
- Passwordless providersp.4
- Sourcesp.4
- 05Auth: choosing a provider by framework (Next.js, React, Astro, React Native)p.5
- Common pattern across frameworksp.5
- Next.jsp.5
- React (SPA and React Router)p.5
- Astrop.5
- React Native and Expop.5
- Sourcesp.5
- 06Database & Platform: connecting and querying Supabase Postgresp.6
- Short answerp.6
- Which access path to usep.6
- Frontend with no backendp.6
- Mobile client librariesp.6
- ORMs without supabase-jsp.6
- Serverless and edge connectionsp.6
- Next.js on Vercelp.6
- Standalone Postgres notesp.6
- +2 more sections
- 07Database & Platform: architecture fits (multi-tenant, SQLite, Heroku, Next.js stack)p.7
- Multi-tenant SaaS isolationp.7
- Move from SQLite to Postgresp.7
- Migrate off Heroku Postgresp.7
- Tech stack for a new Next.js appp.7
- Local development databasep.7
- Sourcesp.7
- 08Database & Platform: plans, cost, free tier, pausing, backupsp.8
- Free vs Pro for a database-only projectp.8
- Free Postgres for a side projectp.8
- Pausingp.8
- Backupsp.8
- Sourcesp.8
See all 25 parts
- 09Database & Platform: scaling, self-hosting, branching and preview databasesp.9
- Scalingp.9
- Self-hostingp.9
- Branching (preview databases)p.9
- Sourcesp.9
- 10Background jobs & queues: Postgres queues, cron and queue providersp.10
- Short answerp.10
- Supabase Queuesp.10
- Supabase Cronp.10
- Queue provider comparisonp.10
- Sourcesp.10
- 11Choosing infrastructure providers: realtime, serverless functions, storage, vector DBs, mobile backendsp.11
- Realtimep.11
- Serverless functionsp.11
- Storagep.11
- Vector databasesp.11
- Mobile app backends (BaaS)p.11
- Sourcesp.11
- 12Migrating databases to Supabase: Postgres dump/restore playbookp.12
- Choosing a methodp.12
- Connection modesp.12
- Prerequisitesp.12
- Step 1: Set up the migration VMp.12
- Step 2: Prepare the Supabase projectp.12
- Step 3: Dumpp.12
- Step 4: Restorep.12
- Step 5: Post-migrationp.12
- +3 more sections
- 13Migrating databases to Supabase: Postgres logical replication, minimal downtimep.13
- Prerequisites on the sourcep.13
- Step 1: Configure the sourcep.13
- Step 2: Verify configp.13
- Step 3: Find tables without a primary keyp.13
- Step 4: Schema onlyp.13
- Step 5: Publication on the sourcep.13
- Step 6: Subscription on Supabasep.13
- Step 7: Monitorp.13
- +5 more sections
- 14Migrating databases to Supabase: from managed Postgres hosts (RDS, Heroku, Neon, Render, Vercel Postgres)p.14
- Per-host differencesp.14
- Supabase side (all hosts)p.14
- Flow A: connection-string hosts (Neon, Vercel Postgres, also valid for any host)p.14
- Flow B: host/user/database hosts (Heroku, Render)p.14
- Flow C: Amazon RDS via Colabp.14
- Options (all hosts)p.14
- Capacity warning (all hosts)p.14
- Verification and rollbackp.14
- +1 more section
- 15Migrating databases to Supabase: from MySQL and MSSQL (pgloader, Colab)p.15
- Prerequisitesp.15
- Option 1: Colabp.15
- Option 2: pgloader, MySQLp.15
- Option 2: pgloader, MSSQLp.15
- Verificationp.15
- Sourcesp.15
- 16Migrating databases to Supabase: from Firebase Firestorep.16
- Setupp.16
- Commandsp.16
- Custom hooks (flatten or modify documents during dump)p.16
- Verification and rollbackp.16
- Sourcesp.16
- 17Migrating databases to Supabase: database pitfalls red-flag tablep.17
- Sourcesp.17
- 18Migrations: Auth0 to Supabase Auth (strategy, export, import)p.18
- Decide firstp.18
- Step 1: export from Auth0p.18
- Step 2: import into Supabase Authp.18
- Verificationp.18
- Gotchasp.18
- Sourcesp.18
- 19Migrations: Auth0 to Supabase Auth (data mapping and FAQ)p.19
- Where users live in Supabasep.19
- Mapping user metadata and custom claimsp.19
- FAQp.19
- Sourcesp.19
- 20Migrations: Firebase Auth to Supabasep.20
- What the tools dop.20
- Prerequisitesp.20
- Stepsp.20
- Verificationp.20
- Gotchasp.20
- Sourcesp.20
- 21Migrations: Firebase Storage to Supabase Storagep.21
- Overviewp.21
- Setupp.21
- Download from Firebasep.21
- Upload to Supabasep.21
- Verificationp.21
- Gotchasp.21
- Sourcesp.21
- 22Tutorials: Better Auth with Supabase declarative schema (setup and sign-in)p.22
- Prerequisitesp.22
- 1. Create the app and installp.22
- 2. Start Supabase locallyp.22
- 3. Environmentp.22
- 4. Configure Better Auth: `src/lib/auth.ts`p.22
- 5. Generate the schema filep.22
- 6. Generate and apply the migrationp.22
- 7. Mount the handler: `src/routes/api/auth/$.ts`p.22
- +4 more sections
- 23Tutorials: Better Auth with Supabase declarative schema (deploy, update, app data)p.23
- Deploy to the hosted projectp.23
- Update the schema (plugins, upgrades)p.23
- Read and write app datap.23
- Verificationp.23
- Sourcesp.23
- 24Tutorials: TanStack Start + Drizzle on Supabase Postgresp.24
- Prerequisitesp.24
- Setupp.24
- Define the schema: `src/db/schema.ts`p.24
- `drizzle.config.ts`p.24
- Generate and applyp.24
- Connect: `src/db/index.ts`p.24
- Server functions: `src/lib/todos.functions.ts`p.24
- Page: `src/routes/index.tsx`p.24
- +2 more sections
- 25Migrations: auth and storage pitfalls red-flag tablep.25
- Sourcesp.25



