Merge pull request #63 from fsolla/agent/fix-vercel-deploy-env

CI — unset test DATABASE_URL for vercel deploy build
This commit is contained in:
Francisco Solla 2026-07-31 23:33:18 -03:00 committed by GitHub
commit 6c19489659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -212,6 +212,10 @@ jobs:
if: steps.tip.outputs.stale != 'true'
run: |
set -euo pipefail
# Workflow-level env points at the CI teqo_test service. Drop it so
# `vercel build` uses `.vercel/.env.production.local` from `vercel pull`
# (otherwise Payload migrate hits 127.0.0.1:5432 → ECONNREFUSED).
unset DATABASE_URL PAYLOAD_SECRET NEXT_PUBLIC_SITE_URL
# Canonical CI link (Vercel KB): env VERCEL_*_ID + pull → build → deploy --prebuilt.
# "Could not retrieve Project Settings" usually means bad/expired token or wrong IDs (403).
vercel pull --yes --environment=production --token="$VERCEL_TOKEN"