Prisma Mongodb in production
Answered
Mallow bee posted this in #help-forum
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 build8 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 buildAnswer
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!