P
Prisma4mo ago
schettn

Lazy load query engine in Cloudflare Workers

Hi! When using previewFeatures = ["driverAdapters"] deploying to most free plans fail due to the bundle size limit of 1mb. This is caused by the added bundle size of the query engine wasm. Wouldnt it be possible to lazy load the wasm when the worker is executed? - With that, the bundle would be reduced by 2MB. - Yes the execution of the worker would take longer, but I think this doesnt really matter in most cases - The Cloudflare Worker free plan offers 128mb of RAM. So it would be possible to lazy load the query engine. https://github.com/prisma/prisma/issues/23350
GitHub
driverAdapters: previewFeatures["driverAdapters"] increases edge ...
Bug description I added previewFeatures = ["driverAdapters"] to my schema.prisma and after that my edge functions cannot be deployed to Next.js anymore because edge size increased from be...
1 Reply
schettn
schettnOP4mo ago
Btw: Please add a "Other" flag to the Discord posts. I always have to add a incorrect tag in order to ask something.
Want results from more Discord servers?
Add your server