From 57b2232d4bfd8a2fb321485dc02b66dde5a50fde Mon Sep 17 00:00:00 2001 From: b1ondie96 <103701664+b1ondie96@users.noreply.github.com> Date: Fri, 18 Jul 2025 16:46:21 +0200 Subject: [PATCH] removed incorrect connection string --- pages/cloudflare/howtos/db.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/cloudflare/howtos/db.mdx b/pages/cloudflare/howtos/db.mdx index 2b9d0cd..4a8a781 100644 --- a/pages/cloudflare/howtos/db.mdx +++ b/pages/cloudflare/howtos/db.mdx @@ -82,7 +82,7 @@ export const getDb = cache(() => { const { env } = getCloudflareContext(); const connectionString = env.HYPERDRIVE.connectionString; const pool = new Pool({ - connectionString: process.env.PG_URL, + connectionString, // You don't want to reuse the same connection for multiple requests maxUses: 1, }); @@ -94,7 +94,7 @@ export const getDbAsync = cache(async () => { const { env } = await getCloudflareContext({ async: true }); const connectionString = env.HYPERDRIVE.connectionString; const pool = new Pool({ - connectionString: process.env.PG_URL, + connectionString, // You don't want to reuse the same connection for multiple requests maxUses: 1, });