Prisma, Cloudflare Workers, and PlanetScale
Has anyone been able to get Prisma running on a PlanetScale database in the Cloudflare Worker environment? If so, please let me know how you did it! I know Prisma generally recommends using the Prisma Data Proxy, but I don't want to use that if I don't have to. I'm thinking since PlanetScale is serverless, there should be a way to make it work. But let me know!
4 Replies
Do you get an error message when you try?
Prisma does not support the web
That’s why they tell you to use the Prisma Data Proxy. But I was just wondering if there was a way to avoid that while using PlanetScale, since they’re serverless so in theory I assume it should be possible?
No, you can use kysely or drizzle, prisma have it own rust engine and can't use on worker
use planetscale's driver directly. if you really want to use prisma, host your own pdp