Skip to content

Commit

Permalink
Merge pull request #377 from MinBZK/method-card-overflow
Browse files Browse the repository at this point in the history
Disable rejectUnauthorized in production
  • Loading branch information
onursagir authored Aug 8, 2023
2 parents 4a10970 + 68b6e63 commit 7410358
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-numbers-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'web': patch
---

Set rejectUnauthorized to false in production
6 changes: 5 additions & 1 deletion apps/web/src/drizzle/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { cmsDatabaseConnectionString } from '@/common/cms-database-connection-st
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';

const client = postgres(cmsDatabaseConnectionString());
const client = postgres(cmsDatabaseConnectionString(), {
ssl: {
rejectUnauthorized: process.env.NODE_ENV !== 'production',
},
});

export const db = drizzle(client);

0 comments on commit 7410358

Please sign in to comment.