Skip to content

Commit 207dcc4

Browse files
authored
Merge pull request #68 from call-0f-code/main
Update client.ts
2 parents 95238fb + 578e803 commit 207dcc4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/db/client.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const pool =
1212
globalForPrisma.pgPool ??
1313
new Pool({
1414
connectionString: process.env.DATABASE_URL,
15+
ssl:
16+
process.env.NODE_ENV === "production"
17+
? { rejectUnauthorized: false }
18+
: false,
1519
});
1620

1721
const adapter = new PrismaPg(pool);
@@ -32,4 +36,4 @@ if (process.env.NODE_ENV !== "production") {
3236
}
3337

3438

35-
export default prisma;
39+
export default prisma;

0 commit comments

Comments
 (0)