From f09701bda08853eb860f03b33a9eb621294658d5 Mon Sep 17 00:00:00 2001 From: Kalleby Santos <105971119+kallebysantos@users.noreply.github.com> Date: Tue, 23 Jun 2026 19:02:13 +0100 Subject: [PATCH] fix(docs): use default connection string (#47233) --- .../supabase/functions/postgres-on-the-edge/index.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/examples/edge-functions/supabase/functions/postgres-on-the-edge/index.ts b/examples/edge-functions/supabase/functions/postgres-on-the-edge/index.ts index 5950f81ad1b..e74d547d3a6 100644 --- a/examples/edge-functions/supabase/functions/postgres-on-the-edge/index.ts +++ b/examples/edge-functions/supabase/functions/postgres-on-the-edge/index.ts @@ -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) => {