Neon Serverless + Prisma + Vercel Functions
Hello,
I want to leverage the Neon Serverless client + Prismaon an app deployed to Vercel Functions . Neon Docs specifies the following Client instantiation:
However, this results in the following runtime error on Vercel:
After googling around, I found out that this is a WebSocket problem (or rather lack of WS support in Vercel Functions) . I would like to ask what is the proper way to utilise the
Neon Serverless client in Vercel environment?Neon
Connect from Prisma to Neon - Neon Docs
Prisma is an open source, next generation ORM that lets you to manage and interact with your database. This guide covers the following topics Connect to Neon from Prisma Use connection pooling with Pr...
1 Reply
optimistic-gold•2y ago
Can you try
npm i bufferutil --save-dev ?
For more context: https://discord.com/channels/1176467419317940276/1176467419938701375/1196916871367229570
I'll make a note to add this to docs
To be clear, are you using Vercel Edge or Vercel Serverless?