Legger med env

This commit is contained in:
Håkon Størdal 2025-09-03 00:42:46 +02:00
parent d7a94ee323
commit d82b6abb87

View file

@ -17,7 +17,7 @@ const getPool = () => {
if (!pool) { if (!pool) {
pool = new Pool({ pool = new Pool({
connectionString: getDatabaseUrl(), connectionString: getDatabaseUrl(),
ssl: process.env.NODE_ENV === 'production' ? { rejectUnauthorized: false } : false ssl: false
}); });
} }
return pool; return pool;