How to know the bundled worker size of my nextjs app on cloudflare pages?
So i have just deployed my nextjs app to cloudflare edge, i added some libraries, and i start to wonder the size of my app, since we only have 1mb limit for free account, i do not know how to check that, does anyone know?
7 Replies
+1
Also I think 100k a day is low.
zip the
_worker.js
directory in .vercel/output/static
and it will give you the zipped size of the workerI would like to ask different question. I deployed my app (Next.js) to Clouflare pages, and it wanted me to make it runtime edge (it's nodejs as default). Is the situation affects the bundled requests count? Because it always increases when I refresh the pages. @Better James
Whether it's an edge runtime route or a prerendered route, it will still invoke the worker and count as a request because it needs to go through the routing system to match the correct destination
You're right. Thank you. I didn't see this feautre Vercel, or Netlify. I was tracking the bandwith for requests. That makes me thinking about costs again.
Yeah Vercel uses Bandwidth and a combination of GB-hours or invocations, whereas cloudflare just uses requests
Thank you for clarification