fix(app-router): support soft navigation in static exports - #3112
Merged
Conversation
james-elicx
force-pushed
the
codex/fix-static-export-soft-navigation
branch
from
August 26, 2026 22:45
02579a9 to
101d884
Compare
james-elicx
marked this pull request as ready for review
August 26, 2026 22:46
james-elicx
marked this pull request as draft
August 26, 2026 22:47
commit: |
Contributor
|
Contributor
Performance benchmarksCompared 1 improved · 0 regressed · 5 within ±1.5%
View detailed results and traces 🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head |
james-elicx
changed the base branch from
main
to
codex/fix-prerender-stale-time-race
August 26, 2026 23:06
james-elicx
force-pushed
the
codex/fix-static-export-soft-navigation
branch
from
August 26, 2026 23:06
101d884 to
835a8a7
Compare
james-elicx
changed the base branch from
codex/fix-prerender-stale-time-race
to
main
August 26, 2026 23:07
james-elicx
force-pushed
the
codex/fix-static-export-soft-navigation
branch
from
August 26, 2026 23:10
f3aa017 to
f684a64
Compare
james-elicx
marked this pull request as ready for review
August 26, 2026 23:11
james-elicx
marked this pull request as draft
August 26, 2026 23:11
james-elicx
changed the base branch from
main
to
codex/fix-prerender-stale-time-race
August 26, 2026 23:13
james-elicx
changed the base branch from
codex/fix-prerender-stale-time-race
to
main
August 26, 2026 23:13
james-elicx
marked this pull request as ready for review
August 27, 2026 08:32
fengmk2
added a commit
to voidzero-dev/vite-plus
that referenced
this pull request
Aug 29, 2026
## Summary Update the pinned vinext revision to include the upstream fix for the scheduled Ecosystem CI failure. The fix was validated in cloudflare/vinext#3109, then merged into upstream main through cloudflare/vinext#3112 as `2a2ce31`. closes #2569 Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.txtassets inoutput: "export", matching Next.js and the configured HTML/trailing-slash layouttext/plainassets for static-export navigation while preserving the visible URL, route params, metadata, and client document statebasePathroots without falling back to a document navigationpublic/assets underbasePathfor verbatim static hostsNext.js parity
This follows Next.js's export transport in
packages/next/src/client/components/router-reducer/fetch-server-response.tsand its trailing-slash regression intest/e2e/app-dir/static-export-skew-trailing-slash/static-export-skew-trailing-slash.test.ts. The.txtextension is only a static-host transport name; the contents remain Flight/RSC bytes. Normal vinext server prerenders continue to emit.rsc.Temporary CI prerequisite
This draft currently carries the two focused commits from #3108 because CI against
mainconsistently reproduced the prerender footer and Node stream-test races that PR fixes. They remain separate from the static-export commits and can be dropped once #3108 lands.Validation
vp checkvp test run tests/app-rsc-cache-busting.test.ts tests/prerender.test.ts(157 tests)vp test run tests/link.test.ts(130 tests)vp test run tests/app-prefetch-rsc-request.test.ts tests/app-browser-entry.test.ts(260 tests)PLAYWRIGHT_PROJECT=static-export pnpm run test:e2e(23 tests)PLAYWRIGHT_PROJECT=static-export-basepath pnpm run test:e2e(3 tests)pnpm --dir examples/static-export build && pnpm --dir examples/static-export verify(50 emitted files)