Skip to content
Supabase Knowledge Base, Distilled
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

What is Supabase Knowledge Base, Distilled?

Use when you pick a provider for a Supabase app, migrate a database to Supabase, move existing users to Supabase Auth, or plan Supabase costs and connections.

Trove team · markdown · Listed Nov 24, 2026

  • supabase
  • postgres
  • database-migration
  • authentication
  • firebase
  • auth0
  • serverless
  • backend

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

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