offline navigations: emit fallback manifest data (2/13)#93624
Closed
feedthejim wants to merge 1 commit intofeedthejim/offline-navigations-flag-canaryfrom
Closed
offline navigations: emit fallback manifest data (2/13)#93624feedthejim wants to merge 1 commit intofeedthejim/offline-navigations-flag-canaryfrom
feedthejim wants to merge 1 commit intofeedthejim/offline-navigations-flag-canaryfrom
Conversation
Contributor
Tests PassedCommit: 97a5c4a |
This was referenced May 8, 2026
c9d716e to
e8d5ded
Compare
72b9f6c to
ea2f115
Compare
e8d5ded to
b23c099
Compare
ea2f115 to
cc2d61a
Compare
Contributor
Stats from current PR🔴 2 regressions
📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles
Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📝 Changed Files (1 file)Files with changes:
View diffsserver.runtime.prod.jsDiff too large to display 📎 Tarball URLCommit: cc2d61a |
cc2d61a to
c997fd8
Compare
This was referenced May 8, 2026
fb4256d to
f0fc5c0
Compare
c997fd8 to
97a5c4a
Compare
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.
Stack Position
This is PR 2/13 in the compressed offline navigations stack. Chapter: Build artifacts and worker boundary.
Review guide: https://gist.github.com/feedthejim/b3d9fe26a7c05655fd57adcce371b93d
Full Stack
Context
The original offline navigations work was split into 25 staging PRs, which made the review surface too noisy. This compressed stack keeps the same first-usable feature at the tip, but groups the work by reviewer-facing behavior: build artifacts first, exact URL replay next, then route-record replay and invalidation.
The architecture boundary is intentional: the generated service worker keeps the app bootable by serving the fallback document, while the cache-components client router owns IndexedDB, replay eligibility, route reconstruction, visible misses, and invalidation.
Folded source PRs: None.
What This PR Does
What Works After This PR
After this PR, an enabled build can produce the manifest data needed to resolve the generated fallback entrypoint later.
What Intentionally Does Not Work Yet
There is still no registered worker, no artifact caching, and no offline document response.
Reviewer Focus
Manifest shape, path stability, build-only scope, and whether the output is minimal enough for later clients to consume.
Proof in This PR
NEXT_TEST_MODE=start pnpm testheadless test/production/app-dir/offline-navigations/offline-navigations.test.tspassed at the compressed tip.emits request-invariant offline navigation artifacts when enabled.git diff --check canary..HEADpassed.git diff --stat HEAD f60949e313andgit diff --name-status HEAD f60949e313produced no output, so the compressed tip preserves the previous staging tip.pnpm --filter=next buildpassed.NEXT_TEST_MODE=start pnpm testheadless test/production/app-dir/offline-navigations/offline-navigations.test.tspassed, 12/12.IS_WEBPACK_TEST=1 NEXT_TEST_MODE=start pnpm testheadless test/production/app-dir/offline-navigations/offline-navigations.test.tspassed, 12/12.Deferred Coverage
Worker registration, Cache Storage population, and route replay are deferred.