feat(app): playground SSR device hints + L5 Cache Components prep - #175
Merged
Conversation
Restore mobile SSR theme hints on App playground routes via dedicated playground segment layouts and proxy Accept-CH headers. Enable cacheComponents and partialPrefetching incrementally with instant=false on runtime segments (root headers, session/i18n layouts).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mkayander
marked this pull request as ready for review
August 23, 2026 19:53
Restore single LocaleAppLayout at parent layouts instead of sibling (marketing)/playground shells that remounted tRPC/query providers on nav. Proxy sets x-dstruct-ssr-device-type on playground paths; LocaleAppLayout reads it. Add Accept-CH e2e, parseSsrDeviceTypeHeader tests, doc fixes.
Flatten pages back under (default-locale)/ and [lang]/ now that a single LocaleAppLayout handles all routes; the group had no layout or URL effect.
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 23, 2026
# [1.387.0](v1.386.0...v1.387.0) (2026-08-23) ### Features * **app:** playground SSR device hints + L5 Cache Components prep ([#175](#175)) ([bfba2ca](bfba2ca))
|
🎉 This PR is included in version 1.387.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
3 tasks
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
Post–L3b next steps: restore playground mobile SSR device hints on App Router and begin L5 Instant Nav / Cache Components adoption.
Playground SSR device hints (regression fix from L2)
LocaleAppLayoutat(default-locale)/layout.tsxand[lang]/layout.tsx(no sibling segment layouts).x-dstruct-ssr-device-typeon playground paths;LocaleAppLayoutreads it forStateThemeProvider.Accept-CH: Sec-CH-UA-Mobileon playground responses.L5 Cache Components (incremental)
cacheComponents+partialPrefetching.instant = falseon root + locale layouts until runtime segments are cached/Suspense-split.Cleanup
(marketing)route group (pages flattened under(default-locale)/and[lang]/).Test plan
pnpm test— 464 unit testspnpm lint— cleanpnpm build— Cache Components enabledpnpm test:e2e— 18/18 (includes Accept-CH on/playground)pnpm preview-smoke— all greenNext steps (post-merge)
headers()locale readunstable_instant+@next/playwrightinstant()tests