#Environment variable not found: DATABASE_URL
7 messages · Page 1 of 1 (latest)
I removed prisma accelerate and the error becomes like this
even a fresh new app does the same error, i literally copied the same code that i have in a prod app and somehow i get this new error
my env file is being read by other things like cloudinary aws etc etc, yet not by prisma
it can be reached, i don't think its an env issue
this is my db.ts as im deploying to Vercel and using Next Js
import { PrismaClient } from "@prisma/client/edge";
import { withAccelerate } from "@prisma/extension-accelerate";
const prismaClientSingleton = () => {
return new PrismaClient().$extends(withAccelerate());
};
declare const globalThis: {
prismaGlobal: ReturnType<typeof prismaClientSingleton>;
} & typeof global;
const prisma = globalThis.prismaGlobal ?? prismaClientSingleton();
export default prisma;
if (process.env.NODE_ENV !== "production") globalThis.prismaGlobal = prisma;
Hey 👋
Is your repo open source? Anyway I can try to reproduce this issue?