Next.js Discord

Discord Forum

PrismaClientInitializationError: Prisma has detected that this project was built on Vercel

Unanswered
fardeen awais posted this in #help-forum
Open in Discord
Hey guys i am getting this error. I run the prisma generate command. Should i need to use prisma generate in my package.json to run with build???

2 Replies

@fardeen awais Hey guys i am getting this error. I run the prisma generate command. Should i need to use prisma generate in my package.json to run with build???
Silver Marten
You need to run the "prisma generate" command when building it


short answer:
change the build command from "next build" to "prisma generate && next build"