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
kordexa
kordexa17mo ago
+1 Also I think 100k a day is low.
James
James17mo ago
zip the _worker.js directory in .vercel/output/static and it will give you the zipped size of the worker
kordexa
kordexa17mo ago
I 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
James
James17mo ago
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
kordexa
kordexa17mo ago
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.
James
James17mo ago
Yeah Vercel uses Bandwidth and a combination of GB-hours or invocations, whereas cloudflare just uses requests
kordexa
kordexa17mo ago
Thank you for clarification
Want results from more Discord servers?
Add your server