Warn when Partial Prefetching is not configured (#99452)
## Summary Warn when `cacheComponents` is enabled without an explicit `partialPrefetching` setting. The warning asks users to choose `true` or `false`, explains that `false` is only for incremental migration, and links to the migration guide. Document that new apps should enable both options, while existing apps should migrate Cache Components and Partial Prefetching incrementally. Both features will be enabled everywhere in the next major release, and the old configuration options will be removed. ## Example output ```text⚠ `cacheComponents` is enabled without a corresponding `partialPrefetching` option. Set `partialPrefetching` to either `true` or `false`. The only reason to set `partialPrefetching` to `false` is if you're migrating an older Cache Components app. The initial release of Cache Components did not include Partial Prefetching. New projects should enable both Cache Components and Partial Prefetching. Both Cache Components and Partial Prefetching will be enabled everywhere in the next major release, and the old configurations will be removed. Learn more: https://nextjs.org/docs/app/guides/adopting-partial-prefetching ``` ## Verification - `pnpm jest packages/next/src/server/config.test.ts --runInBand` (22 tests passed) - Prettier and ESLint on all changed files - Production test matrix left to CI <!-- NEXT_JS_LLM --> --------- Co-authored-by:Claude Opus 5.5 <noreply@anthropic.com>
Showing
This diff is collapsed.
Please
register
or
sign in
to comment