Disable Cache Components by default for chat shell#1502
Open
garinyan wants to merge 1 commit into
Open
Conversation
Contributor
|
@garinyan is attempting to deploy a commit to the Templates Test vtest314 Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
Follow-up status note: the code-related checks currently reported on this PR are passing. The two failing Vercel statuses are authorization gates for preview deployments from a fork:
A member of the corresponding Vercel team will need to authorize those deployments before the preview checks can run. |
8dd0d97 to
a16c38b
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.
Fixes #1501.
Summary
This disables Cache Components / PPR by default for the chatbot template by removing:
cacheComponents: trueexperimental.cachedNavigations: trueRoot cause
In Next.js 16,
cacheComponents: trueopts the app into Cache Components / Partial Prerendering behavior, andexperimental.cachedNavigationsdepends on that mode. The chat shell reads request-time data such asauth()andcookies(), so enabling PPR by default can cause a deployment to serve the homepage as a rawapplication/x-nextjs-pre-renderpayload rather than normal HTML. In that failure mode the request returns HTTP 200, but the page renders internal pre-render payload text instead of the chat UI.This PR intentionally does not migrate the whole app to Cache Components/PPR. That would require a broader audit of request-time data access, Suspense boundaries, and cache semantics. The safer default for the template is to keep these experimental/PPR-related knobs off unless an app owner opts in explicitly.
Testing
pnpm checkI also attempted
pnpm buildlocally, but this Codex macOS environment cannot load the Next.js native SWC binary due to a local code-signing issue:That failure happens while loading Next/SWC and is unrelated to this config diff.