Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limit
Deployment ID: 759fa266-2f14-4c8b-8cb3-8710bb09572a
Getting Function. Got error: Your Functions script is over the 1 MiB size limit error while deploying
3 Replies
Hey, that means your code is too big. You'll need to reduce it's size or get the Paid Workers plan to have larger size limits
is there any Cloudflare cmd to check the size of the project before building it?
No, you need to build it
You can build the app locally and check the size of your zipped _workers.js if you’re using a framework like next-on-pages which creates one. Also try to look for dependencies which you are using which can be trimmed