Skip to content

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Mar 25, 2025

This PR:

  • Switch to using a bundled middleware - we were previsouly generating an external middleware but wrangler was bundling it together with the server bundle. We will revisit once we can deploy the middleware to a different worker.
  • The server handler is now imported right before being used so that the env vars are guaranteed to be populated and the ALS initializzed.

Depends on opennextjs/opennextjs-aws#798

Copy link

changeset-bot bot commented Mar 25, 2025

🦋 Changeset detected

Latest commit: 7dbc8fe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Mar 25, 2025

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@497

commit: 7dbc8fe

@vicb vicb requested review from conico974 and james-elicx March 25, 2025 12:24
Copy link
Collaborator

@conico974 conico974 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a few minor nits

@vicb vicb merged commit 958f322 into main Mar 25, 2025
7 checks passed
@vicb vicb deleted the vb-branch-2 branch March 25, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants