From b50aa7edb62d5198aa1971c13a1c85eed75dec17 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Wed, 22 Jan 2025 15:02:30 -0700 Subject: [PATCH] fix: remove unused param, updated test --- packages/next/src/build/index.ts | 2 -- test/integration/dynamic-routing/test/index.test.js | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/next/src/build/index.ts b/packages/next/src/build/index.ts index f71ccea740867..2f70a8c71da0f 100644 --- a/packages/next/src/build/index.ts +++ b/packages/next/src/build/index.ts @@ -393,7 +393,6 @@ export type RoutesManifest = { staticRoutes: Array dynamicRoutes: Array dataRoutes: Array - prefetchSegmentDataRoutes: Array i18n?: { domains?: ReadonlyArray<{ http?: true @@ -1268,7 +1267,6 @@ export default async function build( dynamicRoutes, staticRoutes, dataRoutes: [], - prefetchSegmentDataRoutes: [], i18n: config.i18n || undefined, rsc: { header: RSC_HEADER, diff --git a/test/integration/dynamic-routing/test/index.test.js b/test/integration/dynamic-routing/test/index.test.js index b6d4fa84ea73e..f2ae862e36130 100644 --- a/test/integration/dynamic-routing/test/index.test.js +++ b/test/integration/dynamic-routing/test/index.test.js @@ -1520,6 +1520,9 @@ function runTests({ dev }) { varyHeader: 'RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch', prefetchHeader: 'Next-Router-Prefetch', + prefetchSegmentDirSuffix: '.segments', + prefetchSegmentHeader: 'Next-Router-Segment-Prefetch', + prefetchSegmentSuffix: '.segment.rsc', prefetchSuffix: '.prefetch.rsc', suffix: '.rsc', },