nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
937 stars 53 forks source link

Question: max app size of 1MB in CF free tier #234

Closed remihuigen closed 1 month ago

remihuigen commented 1 month ago

The [Settings > Cloudflare account page] (https://admin.hub.nuxt.com/onderwijsin/settings/cloudflare) will give the following notification when using CF's free tier:

You are using Cloudflare Workers Free, we highly encourage to upgrade to Workers Paid plan to remove the 1 MB limit on the final, compressed, bundle size and more.

Is this actually true? Could not find anything on this limitation is CF docs... Besides, my lastest deployment is Σ Total size: 4.15 MB (1.19 MB gzip) and it works just fine!

atinux commented 1 month ago

The limit is described here: https://developers.cloudflare.com/workers/platform/limits/#worker-size

Well I guess it's maybe how we calculate the size or they have some kind of allowance, let's see how big it can fit in the workers free plan 😄

remihuigen commented 1 month ago

We'll, Σ Total size: 5.96 MB (2.18 MB gzip) failed 😅. So i guess its somewhere between 1.19 - 2.18

atinux commented 1 month ago

Thanks for helping investigate @remihuigen 😄