mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 01:15:03 +03:00
fix(docs): use default connection string (#47233)
This commit is contained in:
1 parent
ca48e596cf
commit
f09701bda0
1 file changed
+1
-11
@@ -1,17 +1,7 @@
|
||||
import { Pool } from 'jsr:@db/postgres@^0'
|
||||
|
||||
// Create a database pool with one connection.
|
||||
const pool = new Pool(
|
||||
{
|
||||
tls: { enabled: false },
|
||||
database: 'postgres',
|
||||
hostname: Deno.env.get('DB_HOSTNAME'),
|
||||
user: Deno.env.get('DB_USER'),
|
||||
port: 6543,
|
||||
password: Deno.env.get('DB_PASSWORD'),
|
||||
},
|
||||
1
|
||||
)
|
||||
const pool = new Pool(Deno.env.get('SUPABASE_DB_URL')!, 1)
|
||||
|
||||
export default {
|
||||
fetch: async (_req) => {
|
||||
|
||||
Reference in new issue
Block a user