NextJS + Prisma,why is a 2M WASM file generated? #24087
Unanswered
tangpanqing
asked this question in
Q&A
Replies: 1 comment
-
The Wasm file is the Prisma Query Engine, which we use under the hood to generate the SQL queries and so on. It is unfortunately a bit big, but usually compresses down well enough that your app still fits into the 1MB limit of Workers on the free account of Cloudflare. I assume that is not the case for you and you are hitting the upload limit? The only real solution is to use a paid account to deploy your Cloudflare Workers, as the limit is higher than 1M there. Sorry. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
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
How to reproduce (optional)
Expected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
// Add your schema.prisma
// Add any relevant Prisma Client queries here
OS:
Database:
Node.js version:
Run
prisma -v
to see your Prisma version and paste itBeta Was this translation helpful? Give feedback.
All reactions