Troubleshooting Supabase Test

Dan Lynch

Dan Lynch

Nov 14, 2025

lesson header image

Configure Environment Variables

You have two options for configuring your connection to the local Supabase stack:

eval "$(pgpm env --supabase)"

This automatically configures all necessary environment variables for the local Supabase stack.

Option 2: Manual Configuration

Set your connection details manually:

export PGHOST=localhost
export PGPORT=54322
export PGUSER=postgres
export PGPASSWORD=postgres

These match the defaults from npx supabase start. The supabase-test package will automatically use these values.