We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95238fb + 578e803 commit 207dcc4Copy full SHA for 207dcc4
1 file changed
src/db/client.ts
@@ -12,6 +12,10 @@ const pool =
12
globalForPrisma.pgPool ??
13
new Pool({
14
connectionString: process.env.DATABASE_URL,
15
+ ssl:
16
+ process.env.NODE_ENV === "production"
17
+ ? { rejectUnauthorized: false }
18
+ : false,
19
});
20
21
const adapter = new PrismaPg(pool);
@@ -32,4 +36,4 @@ if (process.env.NODE_ENV !== "production") {
32
36
}
33
37
34
38
35
-export default prisma;
39
+export default prisma;
0 commit comments