Debugging guide · 18 verified fixes

Start here if your Next.js + Supabase app breaks in production

Pick your symptom below. Each path leads to a verified fix with code you can copy and steps you can follow. No generic advice.

Want the full checklist?

Next.js + Supabase Production Debugging Checklist — free download

Get it

RLS / security problems

Policy passes in SQL editor but fails in app, infinite recursion, silent failures, service role leaks.

Server Components / SSR session

Session null in Server Components, use client vs use server confusion, dynamic rendering errors.

Cache / stale data

revalidatePath not working, stale data after mutation, routes stuck as static, ISR not refreshing.

Realtime

Subscription not receiving events, channel lifecycle issues, replication not enabled.

Don't see your issue?

Search across all guides and articles, or browse by topic hub.