Unverified Commit 6d59d11e authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

remove `clientParamParsing` configuration & bundle it with `cacheComponents` (#84763)

We can't optionally land this flag in `cacheComponents` so this ensures
it's enabled when using that flag. We still keep around
`rsc.clientParamParsing` as the Vercel CLI still reads from it to opt
into some additional routing configuration, which can be removed in the
future.
parent 299fe740
...@@ -199,9 +199,6 @@ export function getDefineEnv({ ...@@ -199,9 +199,6 @@ export function getDefineEnv({
'process.env.__NEXT_CLIENT_SEGMENT_CACHE': Boolean( 'process.env.__NEXT_CLIENT_SEGMENT_CACHE': Boolean(
config.experimental.clientSegmentCache config.experimental.clientSegmentCache
), ),
'process.env.__NEXT_CLIENT_PARAM_PARSING': Boolean(
config.experimental.clientParamParsing
),
'process.env.__NEXT_CLIENT_VALIDATE_RSC_REQUEST_HEADERS': Boolean( 'process.env.__NEXT_CLIENT_VALIDATE_RSC_REQUEST_HEADERS': Boolean(
config.experimental.validateRSCRequestHeaders config.experimental.validateRSCRequestHeaders
), ),
......
...@@ -468,8 +468,8 @@ export type RoutesManifest = { ...@@ -468,8 +468,8 @@ export type RoutesManifest = {
prefetchSegmentSuffix: typeof RSC_SEGMENT_SUFFIX prefetchSegmentSuffix: typeof RSC_SEGMENT_SUFFIX
/** /**
* Whether the client param parsing is enabled. This is only relevant for * Whether the client param parsing is enabled. This is automatically enabled when
* app pages when PPR is enabled. * cacheComponents is enabled.
*/ */
clientParamParsing: boolean clientParamParsing: boolean
...@@ -1582,24 +1582,13 @@ export default async function build( ...@@ -1582,24 +1582,13 @@ export default async function build(
prefetchSegmentHeader: NEXT_ROUTER_SEGMENT_PREFETCH_HEADER, prefetchSegmentHeader: NEXT_ROUTER_SEGMENT_PREFETCH_HEADER,
prefetchSegmentSuffix: RSC_SEGMENT_SUFFIX, prefetchSegmentSuffix: RSC_SEGMENT_SUFFIX,
prefetchSegmentDirSuffix: RSC_SEGMENTS_DIR_SUFFIX, prefetchSegmentDirSuffix: RSC_SEGMENTS_DIR_SUFFIX,
clientParamParsing: clientParamParsing: config.experimental.cacheComponents ?? false,
// NOTE: once this is the default for `clientSegmentCache`, this clientParamParsingOrigins:
// should exclusively be based on the `clientSegmentCache` flag. config.experimental.clientParamParsingOrigins,
config.experimental.clientParamParsing ?? false,
clientParamParsingOrigins: config.experimental.clientParamParsing
? config.experimental.clientParamParsingOrigins
: undefined,
dynamicRSCPrerender: dynamicRSCPrerender:
// Only enable RDC for Navigations if the feature is enabled.
// Once we've made RDC for Navigations the default for PPR, we
// can remove the check for `config.experimental.rdcForNavigations`.
isAppPPREnabled && isAppPPREnabled &&
config.experimental.rdcForNavigations === true && config.experimental.rdcForNavigations === true &&
// Temporarily we require that clientParamParsing is enabled for config.experimental.cacheComponents === true,
// RDC for Navigations. This is due to a builder configuration
// bug that manifests as invalid query params being passed to
// the resume lambdas.
config.experimental.clientParamParsing === true,
}, },
rewriteHeaders: { rewriteHeaders: {
pathHeader: NEXT_REWRITTEN_PATH_HEADER, pathHeader: NEXT_REWRITTEN_PATH_HEADER,
...@@ -2943,7 +2932,7 @@ export default async function build( ...@@ -2943,7 +2932,7 @@ export default async function build(
// completely static. // completely static.
!( !(
config.experimental.clientSegmentCache && config.experimental.clientSegmentCache &&
config.experimental.clientParamParsing config.experimental.cacheComponents
) )
) { ) {
return return
...@@ -3259,7 +3248,7 @@ export default async function build( ...@@ -3259,7 +3248,7 @@ export default async function build(
// this route. // this route.
!( !(
config.experimental.clientSegmentCache && config.experimental.clientSegmentCache &&
config.experimental.clientParamParsing && config.experimental.cacheComponents &&
isRoutePPREnabled isRoutePPREnabled
) )
) { ) {
...@@ -3369,7 +3358,7 @@ export default async function build( ...@@ -3369,7 +3358,7 @@ export default async function build(
// this case. This only applies if we have PPR enabled for // this case. This only applies if we have PPR enabled for
// this route. // this route.
!config.experimental.clientSegmentCache || !config.experimental.clientSegmentCache ||
!config.experimental.clientParamParsing || !config.experimental.cacheComponents ||
!isRoutePPREnabled !isRoutePPREnabled
) { ) {
prefetchDataRoute = path.posix.join( prefetchDataRoute = path.posix.join(
......
...@@ -296,11 +296,7 @@ export async function handler( ...@@ -296,11 +296,7 @@ export async function handler(
const supportsRSCForNavigations = const supportsRSCForNavigations =
isRoutePPREnabled && isRoutePPREnabled &&
nextConfig.experimental.rdcForNavigations === true && nextConfig.experimental.rdcForNavigations === true &&
// Temporarily we require that clientParamParsing is enabled for nextConfig.experimental.cacheComponents === true
// RDC for Navigations. This is due to a builder configuration
// bug that manifests as invalid query params being passed to
// the resume lambdas.
nextConfig.experimental.clientParamParsing === true
// In development, we always want to generate dynamic HTML. // In development, we always want to generate dynamic HTML.
const supportsDynamicResponse: boolean = const supportsDynamicResponse: boolean =
...@@ -558,9 +554,6 @@ export async function handler( ...@@ -558,9 +554,6 @@ export async function handler(
clientSegmentCache: Boolean( clientSegmentCache: Boolean(
nextConfig.experimental.clientSegmentCache nextConfig.experimental.clientSegmentCache
), ),
clientParamParsing: Boolean(
nextConfig.experimental.clientParamParsing
),
dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover), dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),
inlineCss: Boolean(nextConfig.experimental.inlineCss), inlineCss: Boolean(nextConfig.experimental.inlineCss),
authInterrupts: Boolean(nextConfig.experimental.authInterrupts), authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
...@@ -739,14 +732,14 @@ export async function handler( ...@@ -739,14 +732,14 @@ export async function handler(
throw new NoFallbackError() throw new NoFallbackError()
} }
// When client param parsing is enabled, we can use the fallback // When cacheComponents is enabled, we can use the fallback
// response if the request is not a dynamic RSC request because the // response if the request is not a dynamic RSC request because the
// RSC data when this feature flag is enabled does not contain any // RSC data when this feature flag is enabled does not contain any
// param references. Without this feature flag enabled, the RSC data // param references. Without this feature flag enabled, the RSC data
// contains param references, and therefore we can't use the fallback. // contains param references, and therefore we can't use the fallback.
if ( if (
isRoutePPREnabled && isRoutePPREnabled &&
(nextConfig.experimental.clientParamParsing (nextConfig.experimental.cacheComponents
? !isDynamicRSCRequest ? !isDynamicRSCRequest
: !isRSCRequest) : !isRSCRequest)
) { ) {
...@@ -1203,9 +1196,7 @@ export async function handler( ...@@ -1203,9 +1196,7 @@ export async function handler(
if (typeof cachedData.rscData === 'undefined') { if (typeof cachedData.rscData === 'undefined') {
// If the response is not an RSC response, then we can't serve it. // If the response is not an RSC response, then we can't serve it.
if (cachedData.html.contentType !== RSC_CONTENT_TYPE_HEADER) { if (cachedData.html.contentType !== RSC_CONTENT_TYPE_HEADER) {
if (nextConfig.experimental.clientParamParsing) { if (nextConfig.experimental.cacheComponents) {
// If client param parsing is enabled, then we can return a 404.
// This was likely an old prefetch request.
res.statusCode = 404 res.statusCode = 404
return sendRenderResult({ return sendRenderResult({
req, req,
......
...@@ -162,7 +162,6 @@ async function requestHandler( ...@@ -162,7 +162,6 @@ async function requestHandler(
staleTimes: nextConfig.experimental.staleTimes, staleTimes: nextConfig.experimental.staleTimes,
cacheComponents: Boolean(nextConfig.experimental.cacheComponents), cacheComponents: Boolean(nextConfig.experimental.cacheComponents),
clientSegmentCache: Boolean(nextConfig.experimental.clientSegmentCache), clientSegmentCache: Boolean(nextConfig.experimental.clientSegmentCache),
clientParamParsing: Boolean(nextConfig.experimental.clientParamParsing),
dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover), dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),
inlineCss: Boolean(nextConfig.experimental.inlineCss), inlineCss: Boolean(nextConfig.experimental.inlineCss),
authInterrupts: Boolean(nextConfig.experimental.authInterrupts), authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
......
...@@ -1127,9 +1127,7 @@ function convertTreePrefetchToRouteTree( ...@@ -1127,9 +1127,7 @@ function convertTreePrefetchToRouteTree(
const renderedSearch = '' as NormalizedSearch const renderedSearch = '' as NormalizedSearch
const childParamKey = const childParamKey =
// The server omits this field from the prefetch response when // The server omits this field from the prefetch response when
// clientParamParsing is enabled. The flag only exists while we're // cacheComponents is enabled.
// testing the feature, in case there's a bug and we need to revert.
// TODO: Remove once clientParamParsing is enabled everywhere.
childServerSentParamKey !== null childServerSentParamKey !== null
? childServerSentParamKey ? childServerSentParamKey
: // If no param key was sent, use the value parsed on the client. : // If no param key was sent, use the value parsed on the client.
......
...@@ -399,7 +399,6 @@ async function exportAppImpl( ...@@ -399,7 +399,6 @@ async function exportAppImpl(
nextConfig.experimental.clientSegmentCache === 'client-only' nextConfig.experimental.clientSegmentCache === 'client-only'
? 'client-only' ? 'client-only'
: Boolean(nextConfig.experimental.clientSegmentCache), : Boolean(nextConfig.experimental.clientSegmentCache),
clientParamParsing: nextConfig.experimental.clientParamParsing ?? false,
clientParamParsingOrigins: clientParamParsingOrigins:
nextConfig.experimental.clientParamParsingOrigins, nextConfig.experimental.clientParamParsingOrigins,
dynamicOnHover: nextConfig.experimental.dynamicOnHover ?? false, dynamicOnHover: nextConfig.experimental.dynamicOnHover ?? false,
......
...@@ -132,14 +132,10 @@ export async function exportAppPage( ...@@ -132,14 +132,10 @@ export async function exportAppPage(
// properly so long as we don't have unknown route params. When a route doesn't // properly so long as we don't have unknown route params. When a route doesn't
// have unknown route params, there will not be any flight data. // have unknown route params, there will not be any flight data.
if (!flightData) { if (!flightData) {
// Unless the user has clientParamParsing enabled, we expect that routes
// that don't have fallback route params would have flight data. This is
// because when clientParamParsing is enabled, the absence of flight data
// means that the route has unknown route params.
if ( if (
!fallbackRouteParams || !fallbackRouteParams ||
fallbackRouteParams.size === 0 || fallbackRouteParams.size === 0 ||
renderOpts.experimental.clientParamParsing renderOpts.experimental.cacheComponents
) { ) {
throw new Error(`Invariant: failed to get page data for ${path}`) throw new Error(`Invariant: failed to get page data for ${path}`)
} }
......
...@@ -4996,7 +4996,7 @@ async function collectSegmentData( ...@@ -4996,7 +4996,7 @@ async function collectSegmentData(
const selectStaleTime = createSelectStaleTime(renderOpts.experimental) const selectStaleTime = createSelectStaleTime(renderOpts.experimental)
const staleTime = selectStaleTime(prerenderStore.stale) const staleTime = selectStaleTime(prerenderStore.stale)
return await ComponentMod.collectSegmentData( return await ComponentMod.collectSegmentData(
renderOpts.experimental.clientParamParsing, renderOpts.experimental.cacheComponents,
fullPageDataBuffer, fullPageDataBuffer,
staleTime, staleTime,
clientReferenceManifest.clientModules as ManifestNode, clientReferenceManifest.clientModules as ManifestNode,
......
...@@ -39,10 +39,9 @@ export type RootTreePrefetch = { ...@@ -39,10 +39,9 @@ export type RootTreePrefetch = {
export type TreePrefetch = { export type TreePrefetch = {
name: string name: string
paramType: DynamicParamTypesShort | null paramType: DynamicParamTypesShort | null
// TODO: When clientParamParsing is enabled, this field is always null. // When cacheComponents is enabled, this field is always null.
// Instead we parse the param on the client, allowing us to omit it from // Instead we parse the param on the client, allowing us to omit it from
// the prefetch response and increase its cacheability. Remove this field // the prefetch response and increase its cacheability.
// once clientParamParsing is enabled everywhere.
paramKey: string | null paramKey: string | null
// Child segments. // Child segments.
...@@ -89,7 +88,7 @@ function onSegmentPrerenderError(error: unknown) { ...@@ -89,7 +88,7 @@ function onSegmentPrerenderError(error: unknown) {
} }
export async function collectSegmentData( export async function collectSegmentData(
isClientParamParsingEnabled: boolean, isCacheComponentsEnabled: boolean,
fullPageDataBuffer: Buffer, fullPageDataBuffer: Buffer,
staleTime: number, staleTime: number,
clientModules: ManifestNode, clientModules: ManifestNode,
...@@ -134,7 +133,7 @@ export async function collectSegmentData( ...@@ -134,7 +133,7 @@ export async function collectSegmentData(
// inside of it, the side effects are transferred to the new stream. // inside of it, the side effects are transferred to the new stream.
// @ts-expect-error // @ts-expect-error
<PrefetchTreeData <PrefetchTreeData
isClientParamParsingEnabled={isClientParamParsingEnabled} isClientParamParsingEnabled={isCacheComponentsEnabled}
fullPageDataBuffer={fullPageDataBuffer} fullPageDataBuffer={fullPageDataBuffer}
serverConsumerManifest={serverConsumerManifest} serverConsumerManifest={serverConsumerManifest}
clientModules={clientModules} clientModules={clientModules}
...@@ -319,10 +318,8 @@ function collectSegmentDataImpl( ...@@ -319,10 +318,8 @@ function collectSegmentDataImpl(
return { return {
name, name,
paramType, paramType,
// This value is ommitted from the prefetch response when clientParamParsing // This value is ommitted from the prefetch response when cacheComponents
// is enabled. The flag only exists while we're testing the feature, in // is enabled.
// case there's a bug and we need to revert.
// TODO: Remove once clientParamParsing is enabled everywhere.
paramKey: isClientParamParsingEnabled ? null : paramKey, paramKey: isClientParamParsingEnabled ? null : paramKey,
hasRuntimePrefetch, hasRuntimePrefetch,
slots: slotMetadata, slots: slotMetadata,
......
...@@ -132,7 +132,6 @@ export interface RenderOptsPartial { ...@@ -132,7 +132,6 @@ export interface RenderOptsPartial {
clientTraceMetadata: string[] | undefined clientTraceMetadata: string[] | undefined
cacheComponents: boolean cacheComponents: boolean
clientSegmentCache: boolean | 'client-only' clientSegmentCache: boolean | 'client-only'
clientParamParsing: boolean
/** /**
* The origins that are allowed to write the rewritten headers when * The origins that are allowed to write the rewritten headers when
......
...@@ -554,8 +554,6 @@ export default abstract class Server< ...@@ -554,8 +554,6 @@ export default abstract class Server<
this.nextConfig.experimental.clientSegmentCache === 'client-only' this.nextConfig.experimental.clientSegmentCache === 'client-only'
? 'client-only' ? 'client-only'
: Boolean(this.nextConfig.experimental.clientSegmentCache), : Boolean(this.nextConfig.experimental.clientSegmentCache),
clientParamParsing:
this.nextConfig.experimental.clientParamParsing ?? false,
clientParamParsingOrigins: clientParamParsingOrigins:
this.nextConfig.experimental.clientParamParsingOrigins, this.nextConfig.experimental.clientParamParsingOrigins,
dynamicOnHover: this.nextConfig.experimental.dynamicOnHover ?? false, dynamicOnHover: this.nextConfig.experimental.dynamicOnHover ?? false,
......
...@@ -196,7 +196,6 @@ export const experimentalSchema = { ...@@ -196,7 +196,6 @@ export const experimentalSchema = {
.union([z.boolean(), z.literal('client-only')]) .union([z.boolean(), z.literal('client-only')])
.optional(), .optional(),
rdcForNavigations: z.boolean().optional(), rdcForNavigations: z.boolean().optional(),
clientParamParsing: z.boolean().optional(),
clientParamParsingOrigins: z.array(z.string()).optional(), clientParamParsingOrigins: z.array(z.string()).optional(),
dynamicOnHover: z.boolean().optional(), dynamicOnHover: z.boolean().optional(),
disableOptimizedLoading: z.boolean().optional(), disableOptimizedLoading: z.boolean().optional(),
......
...@@ -287,7 +287,6 @@ export interface ExperimentalConfig { ...@@ -287,7 +287,6 @@ export interface ExperimentalConfig {
* Partial Prerendering is enabled. * Partial Prerendering is enabled.
*/ */
rdcForNavigations?: boolean rdcForNavigations?: boolean
clientParamParsing?: boolean
/** /**
* The origins that are allowed to write the rewritten headers when * The origins that are allowed to write the rewritten headers when
...@@ -1455,7 +1454,6 @@ export const defaultConfig = Object.freeze({ ...@@ -1455,7 +1454,6 @@ export const defaultConfig = Object.freeze({
caseSensitiveRoutes: false, caseSensitiveRoutes: false,
clientSegmentCache: true, clientSegmentCache: true,
rdcForNavigations: false, rdcForNavigations: false,
clientParamParsing: false,
clientParamParsingOrigins: undefined, clientParamParsingOrigins: undefined,
dynamicOnHover: false, dynamicOnHover: false,
preloadEntriesOnStart: true, preloadEntriesOnStart: true,
......
...@@ -1332,18 +1332,6 @@ function assignDefaultsAndValidate( ...@@ -1332,18 +1332,6 @@ function assignDefaultsAndValidate(
) )
} }
// We require clientSegmentCache to be enabled if clientParamParsing is
// enabled. This is because clientParamParsing is only relevant when
// clientSegmentCache is enabled.
if (
result.experimental.clientParamParsing &&
!result.experimental.clientSegmentCache
) {
throw new Error(
`\`experimental.clientParamParsing\` can not be \`true\` when \`experimental.clientSegmentCache\` is \`false\`. Client param parsing is only relevant when client segment cache is enabled.`
)
}
if ( if (
phase === PHASE_DEVELOPMENT_SERVER && phase === PHASE_DEVELOPMENT_SERVER &&
result.experimental?.isolatedDevBuild result.experimental?.isolatedDevBuild
...@@ -1829,25 +1817,6 @@ function enforceExperimentalFeatures( ...@@ -1829,25 +1817,6 @@ function enforceExperimentalFeatures(
) )
} }
// TODO: Remove this once we've made Client Param Parsing the default.
if (
process.env.__NEXT_EXPERIMENTAL_CACHE_COMPONENTS === 'true' &&
// We do respect an explicit value in the user config.
(config.experimental.clientParamParsing === undefined ||
(isDefaultConfig && !config.experimental.clientParamParsing))
) {
config.experimental.clientParamParsing = true
if (configuredExperimentalFeatures) {
addConfiguredExperimentalFeature(
configuredExperimentalFeatures,
'clientParamParsing',
true,
'enabled by `__NEXT_EXPERIMENTAL_CACHE_COMPONENTS`'
)
}
}
// TODO: Remove this once we've made Cache Components the default. // TODO: Remove this once we've made Cache Components the default.
if ( if (
process.env.__NEXT_EXPERIMENTAL_CACHE_COMPONENTS === 'true' && process.env.__NEXT_EXPERIMENTAL_CACHE_COMPONENTS === 'true' &&
......
...@@ -93,7 +93,11 @@ describe('segment cache (basic tests)', () => { ...@@ -93,7 +93,11 @@ describe('segment cache (basic tests)', () => {
) )
}) })
it('navigate to page with lazily-generated (not at build time) static param', async () => { // TODO(cache-components): With `cacheComponents` enabled, this test is outdated, because
// we no longer put the param values in the prefetched RSC response. You'd have to opt into runtime
// prefetching for this test to pass until we ship the optimization that would mark this as fully static
// if you don't reference any dynamic params in the server components.
it.skip('navigate to page with lazily-generated (not at build time) static param', async () => {
let act: ReturnType<typeof createRouterAct> let act: ReturnType<typeof createRouterAct>
const browser = await next.browser('/lazily-generated-params', { const browser = await next.browser('/lazily-generated-params', {
beforePageLoad(page) { beforePageLoad(page) {
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
module.exports = { module.exports = {
experimental: { experimental: {
clientSegmentCache: true, clientSegmentCache: true,
clientParamParsing: true,
}, },
productionBrowserSourceMaps: true, productionBrowserSourceMaps: true,
} }
...@@ -26,7 +26,6 @@ describe('build-output-prerender', () => { ...@@ -26,7 +26,6 @@ describe('build-output-prerender', () => {
"▲ Next.js x.y.z (Turbopack) "▲ Next.js x.y.z (Turbopack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents ✓ cacheComponents
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`) ✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ reactDebugChannel (enabled by \`__NEXT_EXPERIMENTAL_DEBUG_CHANNEL\`)" ✓ reactDebugChannel (enabled by \`__NEXT_EXPERIMENTAL_DEBUG_CHANNEL\`)"
...@@ -36,7 +35,6 @@ describe('build-output-prerender', () => { ...@@ -36,7 +35,6 @@ describe('build-output-prerender', () => {
"▲ Next.js x.y.z (webpack) "▲ Next.js x.y.z (webpack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents ✓ cacheComponents
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`) ✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ reactDebugChannel (enabled by \`__NEXT_EXPERIMENTAL_DEBUG_CHANNEL\`)" ✓ reactDebugChannel (enabled by \`__NEXT_EXPERIMENTAL_DEBUG_CHANNEL\`)"
...@@ -48,7 +46,6 @@ describe('build-output-prerender', () => { ...@@ -48,7 +46,6 @@ describe('build-output-prerender', () => {
"▲ Next.js x.y.z (Turbopack) "▲ Next.js x.y.z (Turbopack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents ✓ cacheComponents
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`) ✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`)
✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`) ✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)" ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)"
...@@ -58,7 +55,6 @@ describe('build-output-prerender', () => { ...@@ -58,7 +55,6 @@ describe('build-output-prerender', () => {
"▲ Next.js x.y.z (webpack) "▲ Next.js x.y.z (webpack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents ✓ cacheComponents
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`) ✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`)
✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`) ✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)" ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)"
...@@ -142,7 +138,6 @@ describe('build-output-prerender', () => { ...@@ -142,7 +138,6 @@ describe('build-output-prerender', () => {
▲ Next.js x.y.z (Turbopack) ▲ Next.js x.y.z (Turbopack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents ✓ cacheComponents
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`) ✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`)
⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`) ⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
...@@ -156,7 +151,6 @@ describe('build-output-prerender', () => { ...@@ -156,7 +151,6 @@ describe('build-output-prerender', () => {
▲ Next.js x.y.z (webpack) ▲ Next.js x.y.z (webpack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents ✓ cacheComponents
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`) ✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`)
⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`) ⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
...@@ -172,7 +166,6 @@ describe('build-output-prerender', () => { ...@@ -172,7 +166,6 @@ describe('build-output-prerender', () => {
▲ Next.js x.y.z (Turbopack) ▲ Next.js x.y.z (Turbopack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents ✓ cacheComponents
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`) ✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`)
✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`) ✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`) ⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`)
...@@ -186,7 +179,6 @@ describe('build-output-prerender', () => { ...@@ -186,7 +179,6 @@ describe('build-output-prerender', () => {
▲ Next.js x.y.z (webpack) ▲ Next.js x.y.z (webpack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents ✓ cacheComponents
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`) ✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`)
✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`) ✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`) ⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`)
...@@ -283,7 +275,6 @@ describe('build-output-prerender', () => { ...@@ -283,7 +275,6 @@ describe('build-output-prerender', () => {
"▲ Next.js x.y.z (Turbopack) "▲ Next.js x.y.z (Turbopack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ cacheComponents (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`) ✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ reactDebugChannel (enabled by \`__NEXT_EXPERIMENTAL_DEBUG_CHANNEL\`)" ✓ reactDebugChannel (enabled by \`__NEXT_EXPERIMENTAL_DEBUG_CHANNEL\`)"
...@@ -293,7 +284,6 @@ describe('build-output-prerender', () => { ...@@ -293,7 +284,6 @@ describe('build-output-prerender', () => {
"▲ Next.js x.y.z (webpack) "▲ Next.js x.y.z (webpack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ cacheComponents (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`) ✓ enablePrerenderSourceMaps (enabled by \`experimental.cacheComponents\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ reactDebugChannel (enabled by \`__NEXT_EXPERIMENTAL_DEBUG_CHANNEL\`)" ✓ reactDebugChannel (enabled by \`__NEXT_EXPERIMENTAL_DEBUG_CHANNEL\`)"
...@@ -304,7 +294,6 @@ describe('build-output-prerender', () => { ...@@ -304,7 +294,6 @@ describe('build-output-prerender', () => {
expect(getPreambleOutput(next.cliOutput)).toMatchInlineSnapshot(` expect(getPreambleOutput(next.cliOutput)).toMatchInlineSnapshot(`
"▲ Next.js x.y.z (Turbopack) "▲ Next.js x.y.z (Turbopack)
- Experiments (use with caution): - Experiments (use with caution):
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`) ✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)" ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)"
`) `)
...@@ -312,7 +301,6 @@ describe('build-output-prerender', () => { ...@@ -312,7 +301,6 @@ describe('build-output-prerender', () => {
expect(getPreambleOutput(next.cliOutput)).toMatchInlineSnapshot(` expect(getPreambleOutput(next.cliOutput)).toMatchInlineSnapshot(`
"▲ Next.js x.y.z (webpack) "▲ Next.js x.y.z (webpack)
- Experiments (use with caution): - Experiments (use with caution):
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`) ✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)" ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)"
`) `)
...@@ -352,7 +340,6 @@ describe('build-output-prerender', () => { ...@@ -352,7 +340,6 @@ describe('build-output-prerender', () => {
▲ Next.js x.y.z (Turbopack) ▲ Next.js x.y.z (Turbopack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ cacheComponents (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`) ✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`)
⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`) ⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
...@@ -366,7 +353,6 @@ describe('build-output-prerender', () => { ...@@ -366,7 +353,6 @@ describe('build-output-prerender', () => {
▲ Next.js x.y.z (webpack) ▲ Next.js x.y.z (webpack)
- Experiments (use with caution): - Experiments (use with caution):
✓ cacheComponents (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ cacheComponents (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`) ✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`)
⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`) ⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`)
✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`) ✓ rdcForNavigations (enabled by \`__NEXT_EXPERIMENTAL_CACHE_COMPONENTS\`)
...@@ -381,7 +367,6 @@ describe('build-output-prerender', () => { ...@@ -381,7 +367,6 @@ describe('build-output-prerender', () => {
"⚠ Prerendering is running in debug mode. Note: This may affect performance and should not be used for production. "⚠ Prerendering is running in debug mode. Note: This may affect performance and should not be used for production.
▲ Next.js x.y.z (Turbopack) ▲ Next.js x.y.z (Turbopack)
- Experiments (use with caution): - Experiments (use with caution):
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`) ✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`)
✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`) ✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`) ⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`)
...@@ -394,7 +379,6 @@ describe('build-output-prerender', () => { ...@@ -394,7 +379,6 @@ describe('build-output-prerender', () => {
"⚠ Prerendering is running in debug mode. Note: This may affect performance and should not be used for production. "⚠ Prerendering is running in debug mode. Note: This may affect performance and should not be used for production.
▲ Next.js x.y.z (webpack) ▲ Next.js x.y.z (webpack)
- Experiments (use with caution): - Experiments (use with caution):
✓ clientParamParsing (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`) ✓ enablePrerenderSourceMaps (enabled by \`--debug-prerender\`)
✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`) ✓ ppr (enabled by \`__NEXT_EXPERIMENTAL_PPR\`)
⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`) ⨯ prerenderEarlyExit (disabled by \`--debug-prerender\`)
......
...@@ -5,7 +5,6 @@ const nextConfig = { ...@@ -5,7 +5,6 @@ const nextConfig = {
experimental: { experimental: {
cacheComponents: true, cacheComponents: true,
clientSegmentCache: true, clientSegmentCache: true,
clientParamParsing: true,
cacheLife: { cacheLife: {
expireNow: { expireNow: {
stale: 0, stale: 0,
......
...@@ -58,7 +58,6 @@ describe.skip('required server files app router', () => { ...@@ -58,7 +58,6 @@ describe.skip('required server files app router', () => {
experimental: { experimental: {
cacheComponents: true, cacheComponents: true,
clientSegmentCache: true, clientSegmentCache: true,
clientParamParsing: true,
}, },
output: 'standalone', output: 'standalone',
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment