Bug downloading DB connection env variables via Vercel
Vercel told me to report this here since it seems to be a problem with the integration:
My project is connected to a Neon DB with separate branches for preview and production. In the Vercel deployment, this works fine, both environments have their own separate database.
However, when I try to run
vercel env pull --environment=preview
on my local computer, even though it responds with Downloading preview Environment Variables for my-account-name/my-project
, the file it downloads actually contains the production DB URL, not the preview one.
The DB connection variables in Vercel are injected by the Neon integration. I've never set or changed them manually.
I'm on the latest version of Vercel CLI.
VERCEL_TARGET_ENV is set correctly in the downloaded file, so the issue just seems to be with the DB variable injection from the Neon integration.1 Reply
unwilling-turquoise•5d ago
Hey! I'll forward this to the team, thank you for reporting!