Skip to content

Commit fa7a8e4

Browse files
committed
reject unauthorized: false
1 parent 605eb08 commit fa7a8e4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/db/apply-migrations.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export async function applyMigrations() {
2525

2626
const client = new pg.Client({
2727
connectionString: env.POSTGRES_CONNECTION_URL,
28+
ssl: {
29+
rejectUnauthorized: false,
30+
},
2831
});
2932

3033
await client.connect();

src/db/connection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import * as schema from "./schema.js";
66
const primaryDb = drizzle(
77
new pg.Pool({
88
connectionString: env.POSTGRES_CONNECTION_URL,
9+
ssl: {
10+
rejectUnauthorized: false,
11+
},
912
}),
1013
{ schema }
1114
);

0 commit comments

Comments
 (0)