NextJS + Prisma,why is a 2M WASM file generated?

Guys, I need your help

I use NextJS + Prisma + Cloudflare D1 to build the app

When uploading and packaging, it actually produced a 2M wasm file, causing the entire package file to be too large and the deployment to be unsuccessful.

First of all, I don’t understand why it generates this file? And how to solve this problem?

Thanks

1 Like

Same issue here, did you find any solution?