Next.js Discord

Discord Forum

Vercel Deployment Error

Answered
Horned oak gall posted this in #help-forum
Open in Discord
Horned oak gallOP
Hello I am getting the following error when I try to deploy. Any tips?

https://github.com/DmitriyMalayev/next-js-list

error: Environment variable not found: DATABASE_URL.

02:03:24.924 --> schema.prisma:13

02:03:24.924 |

02:03:24.92412 | provider = "sqlite"

02:03:24.92413 | url = env("DATABASE_URL")

02:03:24.925 |

02:03:24.925
Answered by @ts-ignore
https://vercel.com/docs/projects/environment-variables

you need to set DATABASE_URL env var and redeploy
View full answer

2 Replies

Horned oak gallOP
02:03:24.925Validation Error Count: 1

02:03:24.925 at _n.handleRequestError (/vercel/path0/node_modules/@prisma/client/runtime/library.js:121:8049)

02:03:24.925 at _n.handleAndLogRequestError (/vercel/path0/node_modules/@prisma/client/runtime/library.js:121:7057)

02:03:24.925 at _n.request (/vercel/path0/node_modules/@prisma/client/runtime/library.js:121:6741)

02:03:24.925 at async l (/vercel/path0/node_modules/@prisma/client/runtime/library.js:130:9355)

02:03:24.925 at async n (/vercel/path0/.next/server/app/prisma-example/page.js:1:4452)

02:03:24.925 at async i (/vercel/path0/.next/server/app/prisma-example/page.js:1:4524) {

02:03:24.925 clientVersion: '5.17.0',

02:03:24.925 errorCode: undefined,

02:03:24.925 digest: '232020760'

Expand 5 Lines

02:03:24.925error: Environment variable not found: DATABASE_URL.

02:03:24.925 --> schema.prisma:13

02:03:24.925 |

02:03:24.92512 | provider = "sqlite"

02:03:24.92513 | url = env("DATABASE_URL")

02:03:24.925 |

02:03:24.925

02:03:24.925Validation Error Count: 1

02:03:24.925 at _n.handleRequestError (/vercel/path0/node_modules/@prisma/client/runtime/library.js:121:8049)

02:03:24.925 at _n.handleAndLogRequestError (/vercel/path0/node_modules/@prisma/client/runtime/library.js:121:7057)

02:03:24.925 at _n.request (/vercel/path0/node_modules/@prisma/client/runtime/library.js:121:6741)

02:03:24.925 at async l (/vercel/path0/node_modules/@prisma/client/runtime/library.js:130:9355)

02:03:24.925 at async n (/vercel/path0/.next/server/app/prisma-example/page.js:1:4452)

02:03:24.925 at async i (/vercel/path0/.next/server/app/prisma-example/page.js:1:4524) {

02:03:24.925 clientVersion: '5.17.0',

02:03:24.925 errorCode: undefined,

02:03:24.925 digest: '232020760'

Expand 5 Lines

02:03:24.925error: Environment variable not found: DATABASE_URL.

02:03:24.925 --> schema.prisma:13

02:03:24.925
https://vercel.com/docs/projects/environment-variables

you need to set DATABASE_URL env var and redeploy
Answer