Prerequisites
Install the required tooling:Setup
Local development
Environment variables
Edge Functions automatically load environment variables from.env.local:
supabase status:
Local services
Project structure
Troubleshooting
Supabase won't start
Supabase won't start
- Ensure Docker is running
- Check ports:
lsof -i :54321,54322,54323 - Reset:
supabase stop && supabase start
Function errors
Function errors
- Check logs:
supabase functions serve --debug - Verify env vars:
cat .env.local
Database issues
Database issues
- Reset:
supabase db reset - Connect directly:
psql postgresql://postgres:postgres@localhost:54322/postgres