P
Prisma4mo ago
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.
Jump to solution
2 Replies
Solution
jonfanz
jonfanz4mo ago
This is intended, yes, and no there’s no improvements to be made beyond ensuring that you’re generating the minimum amount of code.
davey
daveyOP4mo ago
Thanks for the response. I think that makes it unusable for my current project unfortunately

Did you find this page helpful?