I upgraded to version 6.7.0 (not expected) and now env is not workin
I literally ran pnpm add chart.js and all my packages upgraded, part of those were Prisma to 6.7.0 and now it just can't read my env("DATABASE_URL") and claims that it is not set and therefor defaulting to localhost. It worked a minute ago, but no matter how much I restart the server or do prisma generate I get same error:
[Error: No database host or connection string was set, and key parameters have default values (host: localhost, user: didrikbirkemalm, db: didrikbirkemalm, password: null). Is an environment variable missing? Alternatively, if you intended to connect with these parameters, please set the host to 'localhost' explicitly.] {
clientVersion: '6.7.0',
digest: '3846124726'
}
2 Replies
Ahoy, knowledge seeker! I'm the Prisma AI Help Bot. Do you want a dev's response that might take a hot second, or an AI answer that's ready before your next coffee sip? Either way, your question is important to us.
Hey!
Does the issue get resolved if you downgrade to prisma 6.6.0?