Generated Pages Functions bundle size

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

What is the error number?

What is the error message?

Compiled Worker successfully - Generated Pages Functions bundle size (26809243) is over the limit of 25.0 MiB - Failed: generating Pages Functions failed. Check the logs above for more information. If this continues for an unknown reason, contact support: https://cfl.re/3WgEyrH

What is the issue or error you’re encountering

The issue, is we develop Next.js 14 with App router,hosted it and everything fine, but when we added Sentry, it significantly inacrease the post-build under “Attaching additional modules”. The bundle size is correct, but the additional modules our of limit.

What are the steps to reproduce the issue?

Next.js app with Sentry
During the build:

/[locale]/about-us 343 B 188 kB
… (everything is fine, and localy bundle size is the same)
:zap: Generated ‘.vercel/output/static/_worker.js/index.js’.
:zap: Build completed in 24.14s
Finished
Found _worker.js in output directory. Uploading.
:partly_sunny: wrangler 3.76.0

Attaching additional modules: (!!! Under this, probably CL runs own commands that I can’t verify localy)


next-on-pages-dist/functions/[locale]/about-us.func.js │ esm │ 1218.56 KiB │
… It basically adds the 1.2 MB to each page

What is the problem it cause? Maybe I’ll also post this to Sentry, but CL limit us 25 MB, and it’s even not the bundle, it’s basically addititonal modules to handle the errors correctly

Post same q at sentry - Next.js with deploy to Cloudflare Pages failed, due to limit of 25 MB, after adding Sentry · Issue #13723 · getsentry/sentry-javascript · GitHub