Legger med env
This commit is contained in:
parent
d7a94ee323
commit
d82b6abb87
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue