Skip to content

1.12 larger build #986

@ceramicunobir

Description

@ceramicunobir

Is your feature request related to a problem?

After upgrading to [email protected], my Next.js 16 project builds successfully but fails during the publish step with the following error:

19:47:55.693 ✨ Upload complete!
19:48:01.740 Success: Assets published!
19:48:09.207 Error: Failed to publish your Function. Got error:
Your Worker exceeded the size limit of 3 MiB.
Please upgrade to a paid plan to deploy Workers up to 10 MiB.

The same project builds and deploys without issues on version 1.11.
It seems that version 1.12 produces a significantly larger Worker bundle, possibly due to a change in the bundling or runtime packaging process.

🧩 Environment

Next.js: 16.x

opennextjs-cloudflare: 1.12 (works fine on 1.11)

Cloudflare Pages / Workers Free Plan

✅ Expected behavior

The build output should remain under the 3 MiB limit as it did in version 1.11.

🧠 Additional context

It might be related to updated dependencies or how @cloudflare/workers-types / wrangler handles bundling in 1.12.

Describe the solution you'd like

The build output should remain under the 3 MiB limit as it did in version 1.11.

Describe alternatives you've considered

1.12 less build size

@opennextjs/cloudflare version

1.11

Additional context

No response

Before submitting

  • I have checked that there isn't already a similar feature request
  • This is a single feature (not multiple features in one request)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions