Next.js Discord

Discord Forum

Prisma Mongodb in production

Answered
Mallow bee posted this in #help-forum
Open in Discord
Mallow beeOP
How can i use prisma in production. I use mongodb. To deploy on vercel
Answered by British Shorthair
you should change the project build command from next build to npx prisma generate && next build
View full answer

8 Replies

@@ts-ignore just use it?
Mallow beeOP
so no need to "prisma genarate"
first time deploying prisma
ahh add a postinstall script
British Shorthair
you should change the project build command from next build to npx prisma generate && next build
Answer
Mallow beeOP
Alr thank you!
British Shorthair
in vercel settings at Build & Development Settings
@British Shorthair in vercel settings at `Build & Development Settings`
Mallow beeOP
Yes found it!