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

1 messages · Page 1 of 1 (latest)

shell maple
#

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?

still galleonBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

frosty sierra
shell maple
frosty sierra