PrismaClientInitializationError]: error: Environment variable not found: DATABASE_URL.
I really need help, i spent like 2 hours now on this and i just cant fix it.
1. I am on the latest's version of the client
2. I have checked, i have a .env in root and it has DATABASE_URL in it
3. I tried using the new prisma.config.ts (and without):
Still same error...
This is my main schema:
This is how i initialise it:
I use these pool things from the docs. It is becouse i am deploying to Vercel. And vercel was giving some weird issues that i was trying to resolve. But now i have these issues.
The prior issues that lead to me upgrading the @prisma/client version and having these problems:
It says no exported member. While it does, ofcouse. Locally it DOES build and export the types. So idk why it didnt on vercel. So i just updated the client in hopes of fixing it. But now got more problems
1. I am on the latest's version of the client
2. I have checked, i have a .env in root and it has DATABASE_URL in it
3. I tried using the new prisma.config.ts (and without):
Still same error...
This is my main schema:
This is how i initialise it:
I use these pool things from the docs. It is becouse i am deploying to Vercel. And vercel was giving some weird issues that i was trying to resolve. But now i have these issues.
The prior issues that lead to me upgrading the @prisma/client version and having these problems:
It says no exported member. While it does, ofcouse. Locally it DOES build and export the types. So idk why it didnt on vercel. So i just updated the client in hopes of fixing it. But now got more problems