3mb exceeded error
I have my functions folder only of 7KB, I am still getting this issue again and again
7 Replies
does this include only the size of the js file? or if I am importing a few json files, they are also included?
You're bundling the json files so yes they're included too
Everything in your bundle counts to the size
I think the limits were set to reduce the boot time of these workers right?
Yes
You can upgrade to Paid for 10 MiB limit
Or move JSON into KV
what's that?
Cloudflare Docs
Cloudflare Workers KV · Cloudflare Workers KV docs
Workers KV is a data storage that allows you to store and retrieve data globally. With Workers KV, you can build dynamic and performant APIs and websites that support high read volumes with low latency.

thanks a lot