gravgor
HOBBYOP
a year ago
Hey, i got problem with my next.js deployment all the time prisma telling me that env variable isn't here, but i have it.
12 69.38 Error occurred prerendering page "/collections". Read more: https://nextjs.org/docs/messages/prerender-error
#12 69.38 PrismaClientInitializationError:
#12 69.38 Invalid `prisma.user.findMany()` invocation:
#12 69.38
#12 69.38
#12 69.38 error: Environment variable not found: DATABASE_URL.
#12 69.38 --> schema.prisma:7
#12 69.38 |
#12 69.38 6 | provider = "postgresql"
#12 69.38 7 | url = env("DATABASE_URL")
#12 69.38 |
#12 69.38
#12 69.38 Validation Error Count: 18 Replies
brody
EMPLOYEE
a year ago
are you using a Dockerfile?
brody
EMPLOYEE
a year ago
please read these docs -
brody
EMPLOYEE
a year ago
no problem!
