jcm10
Explore posts from serversPPrisma
•Created by jcm10 on 1/10/2025 in #help-and-questions
Prisma Optimize Initialization Missing Database URL
After waiting 2 hours for migrations, I decided to give Optimize a go. I have my database url in my .env.development file, which works great when initializing my prisma clients in other files, the DB services. However, it can't find it on my index file.
Here is the error that gets printed:
However, if I remove the prisma code from this file and log the process.env.DATABASE_URL, it prints out no problem.
The script I am running when the error occurs is this:
6 replies