Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limi
Hey there! I'm looking at a couple of providers for hosting a somewhat large Nextjs 13 application. Vercel's pricing doesn't scale too well so was looking at using cloudflare workers (pages). I'm relatively new with cloudflare, so bare with me
So I know that Vercel has edge functions and I believe that they piggyback off cloudflare. So my question is, how come I can host my application on vercel (free) but not on cloudflare (free). I also recognise that there is a 1Mb size limit for the worker (?) - where do I actually find out how big the file is (locally if possible)? I've got ~50 pages and the same number of api's (which I've converted to edge compatible functions). No single function is taking up more than 120kb in size. When I do - npx @cloudflare/next-on-pages --experimental-minify and check the .vercel/output/static/worker.js/ it's around 6mb - is this what I should be looking at or is it the index.js, which is 93kb (or something completely different)?
So I know that Vercel has edge functions and I believe that they piggyback off cloudflare. So my question is, how come I can host my application on vercel (free) but not on cloudflare (free). I also recognise that there is a 1Mb size limit for the worker (?) - where do I actually find out how big the file is (locally if possible)? I've got ~50 pages and the same number of api's (which I've converted to edge compatible functions). No single function is taking up more than 120kb in size. When I do - npx @cloudflare/next-on-pages --experimental-minify and check the .vercel/output/static/worker.js/ it's around 6mb - is this what I should be looking at or is it the index.js, which is 93kb (or something completely different)?