fix: disable SSL for local PostgreSQL connection

The votc-db container doesn't support SSL connections, causing
"The server does not support SSL connections" errors on the
waitlist signup endpoint in production.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-02-17 16:12:36 -07:00
parent 70349c2443
commit 195b3ad00a
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ const nodemailer = require('nodemailer');
// Initialize PostgreSQL connection pool
const pool = new Pool({
connectionString: process.env.DATABASE_URL,
ssl: process.env.NODE_ENV === 'production' ? { rejectUnauthorized: false } : false
ssl: false
});
// Initialize SMTP transport (Mailcow)