workers-sdk: ๐Ÿ› BUG: "Got error: multipart: message too large" when deploying for Next JS SSR app

Which Cloudflare product(s) does this pertain to?

Pages

What version of Wrangler are you using?

3.0.1

What operating system are you using?

Windows

Describe the Bug

I am having issue with Pages deployment after running next-on-pages (npx @cloudflare/next-on-pages@1) to generate static files and _worker.js dir (SSR). Below is the screenshot of the deployment log from connected Github build. Screenshot_2023-06-01_111312

As what I can see now is the next-on-pages command success on both locally (my dev machine) and Pages, but seems Pages pops this โ€œmultipart: message too largeโ€ error when I try to deploy the app.

I tried both deployment methods, Github (build log as in above screenshot) and npx wrangler pages deploy .vercel/output/static (files upload success), but both failed when publishing on Pages.

More info: Framework: Next JS v13.3.4 Next-on-pages: v1.0.1 SSR pages: 20+ _worker.js dir (unzipped) size: 14MB+

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 17 (9 by maintainers)

Most upvoted comments

I suspect that this issue is not yet fixed, so Iโ€™m reopening it as I am looking into it further