Next.js Discord

Discord Forum

Edge function using Prisma returns 405 Method Not Allowed

Unanswered
Eulophid wasp posted this in #help-forum
Open in Discord
Eulophid waspOP
The function works fine without any database calls but if I add a Prisma client request it returns 405 on Vercel (works fine locally).

I'm using Prisma Accelerate and the Prisma/client/edge client to make a simple request to return some data that I use to build a prompt - this triggers a streamed response.

The stream works perfectly without the Prisma functions included...

Any tips on how I can debug?

0 Replies