Skip to content

Commit 01e09c4

Browse files
authored
Merge pull request #85 from supabase/fix/ssl
fix: setting ssl to false
2 parents 35084fc + 06a3fc2 commit 01e09c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/connectionPool.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ pg.types.setTypeParser(20, 'text', parseInt)
77
const { Pool } = pg
88

99
export const RunQuery = async (connectionString: any, sql: string | SQLStatement) => {
10-
const pool = new Pool({ connectionString, ssl: false })
10+
const pool = new Pool({
11+
connectionString,
12+
ssl: {
13+
rejectUnauthorized: false,
14+
},
15+
})
1116
try {
1217
const results = await pool.query(sql)
1318
return { data: results.rows, error: null }

0 commit comments

Comments
 (0)