fix(docs) : Fixing the environment variable & Vercel Deployment Build command#4839
Open
ayushpattnaik wants to merge 2 commits into
Open
fix(docs) : Fixing the environment variable & Vercel Deployment Build command#4839ayushpattnaik wants to merge 2 commits into
ayushpattnaik wants to merge 2 commits into
Conversation
- Renaming DIRECT_URL to DATABASE_URL_UNPOOLED
|
@ayushpattnaik is attempting to deploy a commit to the neondatabase Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 :

So the build fails because it is not able to detect the

DIRECT_URLvariable and hence fails to find datasource.urlTherefore it is safe to change it to
DATABASE_URL_UNPOOLEDsince 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 names2. 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.