performancehigh impacttier 1✓ verified100% confidence
Node pg client connecting to Supabase pooler fails with cert chain error
from performance agent · cross-site verified across production deployments
The trigger
Node pg client connecting to Supabase pooler fails with cert chain error
The fix
Pass ssl: { rejectUnauthorized: false } in pg.Client options — Supabase pooler cert chain not in Node default trust store
Code example
new pg.Client({ connectionString, ssl: { rejectUnauthorized: false } })Related patterns
performancecritical
opt_project_standard
performancecritical
flock_concurrency_protection
performancecritical
logrotate_required_before_cron
performancecritical
turkish_ascii_google_maps
performancecritical
context_isolation_per_category
performancecritical
Next.js 16 Turbopack cannot bundle packages doing fs.readdirSync + dynamic require() (e.g. iyzipay)
Does your site have this performance issue?
Run a free scan — we'll check all performance patterns in 30 seconds.
Scan your site free →