3mb exceeded error

I have my functions folder only of 7KB, I am still getting this issue again and again
7 Replies
Rohan Vashisht
Rohan VashishtOP2w ago
does this include only the size of the js file? or if I am importing a few json files, they are also included?
Walshy
Walshy2w ago
You're bundling the json files so yes they're included too Everything in your bundle counts to the size
Rohan Vashisht
Rohan VashishtOP2w ago
I think the limits were set to reduce the boot time of these workers right?
Walshy
Walshy2w ago
Yes You can upgrade to Paid for 10 MiB limit Or move JSON into KV
Rohan Vashisht
Rohan VashishtOP2w ago
what's that?
Walshy
Walshy2w ago
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.
From An unknown user
From An unknown user
Rohan Vashisht
Rohan VashishtOP2w ago
thanks a lot

Did you find this page helpful?