Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

one click depoly to Vercel got below error #56

Closed
mmtechhk opened this issue Mar 29, 2023 · 4 comments
Closed

one click depoly to Vercel got below error #56

mmtechhk opened this issue Mar 29, 2023 · 4 comments

Comments

@mmtechhk
Copy link

Error: Prisma schema validation - (get-config wasm)

17:06:24.216 | Error code: P1012
17:06:24.216 | error: Environment variable not found: DIRECT_DATABASE_URL.
17:06:24.216 | --> schema.prisma:4
17:06:24.216 | |
17:06:24.216 | 3 | url = env("DATABASE_URL")
17:06:24.216 | 4 | directUrl = env("DIRECT_DATABASE_URL")
17:06:24.216 | |
17:06:24.216 |  
17:06:24.217 | Validation Error Count: 1
17:06:24.217 | [Context: getConfig]
17:06:24.217 |  
17:06:24.218 | Prisma CLI Version : 4.11.0
17:06:24.257 | Error: Command "npm run build" exited with 1
17:06:24.687 | BUILD_UTILS_SPAWN_1: Command "npm run build" exited with 1

@shafty023
Copy link

I am getting the same error

@Tombcn71
Copy link

Tombcn71 commented Apr 9, 2023

I had the same I found the solution on this page. https://neon.tech/docs/guides/prisma
these settings are defined in our prisma file but not yet in de .env file.

update your .env file with both the DATABASE_URL and DIRECT_URL variables settings. As shown in the following example, set DATABASE_URL to the pooled connection string for your Neon database, and set DIRECT_URL to the non-pooled connection string.

DATABASE_URL="postgres://casey:@ep-square-sea-260584-pooler.us-east-2.aws.neon.tech:5432/neondb?pgbouncer=true"
DIRECT_URL="postgres://casey:@ep-square-sea-260584.us-east-2.aws.neon.tech:5432/neondb"

@mmtechhk
Copy link
Author

Thanks. After I added this 2. I fixed

image

@iShelar
Copy link

iShelar commented May 1, 2023

@Tombcn71 What would be the shadow DB URL?

This issue was closed.
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

No branches or pull requests

4 participants