Skip to content

fix(docs) : Fixing the environment variable & Vercel Deployment Build command#4839

Open
ayushpattnaik wants to merge 2 commits into
neondatabase:mainfrom
ayushpattnaik:main
Open

fix(docs) : Fixing the environment variable & Vercel Deployment Build command#4839
ayushpattnaik wants to merge 2 commits into
neondatabase:mainfrom
ayushpattnaik:main

Conversation

@ayushpattnaik
Copy link
Copy Markdown

@ayushpattnaik ayushpattnaik commented May 1, 2026

There are two changes to the documentation:

1. Environment Variable name mismatch between code and Vercel

The neon-managed vercel integration automatically sets the environment variables in Vercel like this :
image

So the build fails because it is not able to detect the DIRECT_URL variable and hence fails to find datasource.url
brave_screenshot_vercel com (1)

Therefore it is safe to change it to DATABASE_URL_UNPOOLED since for other deployment platforms there would be no such auto env variable naming. And if there is, we might need to change from vercel part of the code to give correct variable names

2. Pre-requisite command for Vercel Build

Current command for build override (npx prisma migrate deploy && npm run build) fails because it is not able to detect the client from the generated schema folder because there is no schema generate without theprisma generatecommand.
brave_screenshot_vercel com

- Renaming DIRECT_URL to DATABASE_URL_UNPOOLED
@vercel
Copy link
Copy Markdown

vercel Bot commented May 1, 2026

@ayushpattnaik is attempting to deploy a commit to the neondatabase Team on Vercel.

A member of the Team first needs to authorize it.

@ayushpattnaik ayushpattnaik changed the title Changing the environment variable Fixing the environment variable & Vercel Deployment Build command May 1, 2026
@ayushpattnaik ayushpattnaik changed the title Fixing the environment variable & Vercel Deployment Build command fix(docs) : Fixing the environment variable & Vercel Deployment Build command May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant