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
Cyb3r-Jak3
Cyb3r-Jak310mo ago
Do you get an error message when you try?
Lengo
Lengo10mo ago
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?
windwp
windwp10mo ago
No, you can use kysely or drizzle, prisma have it own rust engine and can't use on worker
morpig
morpig10mo ago
use planetscale's driver directly. if you really want to use prisma, host your own pdp
Want results from more Discord servers?
Add your server
More Posts