Next.js on pages worker function size

For Workes & Pages, what is the name of the domain?

What is the issue or error you’re encountering

workers.api.error.script_too_large

What are the steps to reproduce the issue?

When I upload my nextjs with next-on-pages I get the following error:

Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)

I understand the error but I would like to know how this size is calculated, what is the folder that gets uploaded as worker do I need to check for the size?

Please see: https://developers.cloudflare.com/workers/platform/limits/#worker-size

Thanks for the response, but if I run wrangler deploy .vercel/output/static/_worker.js --outdir dryrun --dry-run --compatibility-date 2024-07-13 this produces the following output:

 ⛅️ wrangler 3.64.0
-------------------

Total Upload: 44.82 KiB / gzip: 11.67 KiB
--dry-run: exiting now.

Is the right folder that I need to check for nextjs with next-on-pages?