Skip to content

reproduction: middleware rewrite breaks client-side navigation on SSG target (#1170)#1171

Merged
sommeeeer merged 6 commits into
opennextjs:mainfrom
troendheim:repro/1170-middleware-rewrite-client-nav
May 21, 2026
Merged

reproduction: middleware rewrite breaks client-side navigation on SSG target (#1170)#1171
sommeeeer merged 6 commits into
opennextjs:mainfrom
troendheim:repro/1170-middleware-rewrite-client-nav

Conversation

@troendheim

Copy link
Copy Markdown
Contributor

Extends e2e tests and page router example with a currently broken handling of rewrites as per issue #1170

@changeset-bot

changeset-bot Bot commented May 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 943d8c5

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

This PR includes changesets to release 2 packages
Name Type
@opennextjs/aws Patch
app-pages-router 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

@troendheim troendheim marked this pull request as ready for review May 20, 2026 11:27
@sommeeeer

Copy link
Copy Markdown
Collaborator

Great work on this one @troendheim !

Would you mind adding a changeset?

Comment thread examples/pages-router/src/middleware.ts
@pkg-pr-new

pkg-pr-new Bot commented May 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@opennextjs/aws@1171

commit: 943d8c5

@troendheim

Copy link
Copy Markdown
Contributor Author

@sommeeeer haven't used changesets before so I'm unsure if it's up to par. If not, please let me know 😄

@troendheim troendheim requested a review from sommeeeer May 20, 2026 12:48

@conico974 conico974 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks a lot for this @troendheim

@troendheim

Copy link
Copy Markdown
Contributor Author

@conico974 No problem. Btw I wasn't aware that I broke the unit tests. I'll push a change :-)

@sommeeeer sommeeeer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, great work on this one @troendheim!

I'll merge when CI is done and green

@sommeeeer sommeeeer merged commit d9a217a into opennextjs:main May 21, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request May 21, 2026
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.

3 participants