From 88ffdb0066135d1aeae0b0ffe8ead7bbf329b84e Mon Sep 17 00:00:00 2001 From: David Nguyen Date: Wed, 6 Mar 2024 16:36:48 +0800 Subject: [PATCH] fix: remove duplicate neon pooler --- scripts/vercel.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/vercel.sh b/scripts/vercel.sh index 30fe99476..abdcb0126 100755 --- a/scripts/vercel.sh +++ b/scripts/vercel.sh @@ -6,7 +6,6 @@ set -eo pipefail # Get the directory of this script, regardless of where it is called from. SCRIPT_DIR="$(readlink -f "$(dirname "$0")")" - function log() { echo "[VercelBuild]: $1" } @@ -77,10 +76,7 @@ function remap_database_integration() { if [[ "$NEXT_PRIVATE_DATABASE_URL" == *"neon.tech"* ]]; then log "Remapping for Neon integration" - PROJECT_ID="$(echo "$PGHOST" | cut -d'.' -f1)" - PGBOUNCER_HOST="$(echo "$PGHOST" | sed "s/${PROJECT_ID}/${PROJECT_ID}-pooler/")" - - export NEXT_PRIVATE_DATABASE_URL="postgres://${PGUSER}:${PGPASSWORD}@${PGBOUNCER_HOST}/${PGDATABASE}?pgbouncer=true" + export NEXT_PRIVATE_DATABASE_URL="postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}/${PGDATABASE}?pgbouncer=true" fi }