tidbcloud / prisma-adapter

7 stars 5 forks source link

Can I use this adapter in serverless edge environment such as Cloudflare Workers or Vercel Functions #21

Closed m430 closed 7 months ago

m430 commented 8 months ago

https://github.com/prisma/prisma/issues/21394#issuecomment-1992311887

I noticed the prisma has been released a preview version with edge environment, I want to use tidb serverless with prisma.

zhangyangyu commented 7 months ago

Hi @m430 , we've just released the corresponding version 5.11.0. With this version, you can use this adapter against TiDB Serverless with Prisma on edge envs like Vercel and Cloudflare Workers. You can refer this repo https://github.com/tidbcloud/serverless-driver-example for samples.