PrismaP
Prisma16mo ago
4 replies
davey

Any way to decrease prisma client size for Cloudflare D1?

I have a small schema with two models and running prisma generate takes the bundle size from 30kb to 860kb which is super unreasonable for a serverless project. Is this intended and is there anything I can do to decrease the size in production?
Solution
This is intended, yes, and no there’s no improvements to be made beyond ensuring that you’re generating the minimum amount of code.
Was this page helpful?