PrismaP
Prisma•2y ago•
6 replies
jeromec8194

Deploying to Vercel

From what I can see by searching, it seems I'm not the first one.... But I've now been stuck for days trying to deploy to Vercel, a NextJS app using Prisma.

āœ… All works fine locally
āœ… I've added a postinstall script to generate the client, I see no build errors, prisma client is generated fine in the build logs
āœ… prisma.myModel.findMany(....) returns data
āŒ prisma.myModel.create( {data} ) seems to fail silently, the console.log that follows it never runs. I've triple checked, data matches my db's schema....

I've obviously searched around, read the docs multiple times, but I'm now running out of ideas.... Would anyone here have an idea ? šŸ™šŸ»
Was this page helpful?