next.js
77662563 - Remove deprecated experimental_ppr route-level configuration (#84871)

Commit
198 days ago
Remove deprecated experimental_ppr route-level configuration (#84871) ### What? Removes the deprecated `experimental_ppr` route-level configuration option from Next.js. ### Why? The PPR configuration feature has been deprecated in favor of the cache components feature flag. The `experimental_ppr` route-level option no longer has any effect since incremental PPR is not supported with cache components. Rather than silently ignoring this configuration, this change ensures that users receive an explicit error when they attempt to export `experimental_ppr` from their routes. This provides clear feedback that the configuration needs to be removed when migrating to the cache components approach. ### How? - Removed `experimental_ppr` from the segment config schema and types (both Rust and TypeScript) - Updated `checkIsRoutePPREnabled` to no longer accept the `appConfig` parameter since route-level config is removed - Added `experimental_ppr` to the list of possibly invalid exports when cache components are enabled, ensuring users get an error instead of silent failure - Removed unused `reduceAppConfig` import that was no longer needed after these changes
Author
Parents
Loading