Next.js Discord

Discord Forum

How to deal with the too large submission when deploying my next.js project to Cloudflare?

Unanswered
Peregrine Falcon posted this in #help-forum
Open in Discord
Peregrine FalconOP
My Next.js project is deployed to Cloudflare, but it reports that the bundle size is too large and requires me to upgrade my plan. However, my deployment size shows only 22 MB, and even after upgrading, the limit is still 10 MB, which is not enough.

I’m sure my project isn’t very complex — it has only 12 frontend pages, all purely frontend code, with no Cloud Functions used. However, I do use internationalization (i18n).

The AI explanation says that because of i18n, each page is bundled with its own separate runtime, which increases the overall size.

How should I handle this issue and successfully deploy my project to Cloudflare?

1 Reply