Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,12 @@ export interface DynamicSsgRoute {
* The status code that should be used when serving the fallback.
*/
fallbackStatus?: number

/**
* The root params that are unknown for this fallback route.
*/
fallbackRootParams: readonly string[] | undefined

prefetchDataRoute: string | null | undefined
prefetchDataRouteRegex: string | null | undefined
routeRegex: string
Expand Down Expand Up @@ -3154,6 +3160,7 @@ export default async function build(
fallbackRevalidate,
fallbackStatus: meta.status,
fallbackHeaders: meta.headers,
fallbackRootParams: route.fallbackRootParams,
dataRouteRegex: !dataRoute
? null
: normalizeRouteRegex(
Expand Down Expand Up @@ -3581,6 +3588,7 @@ export default async function build(
? `${normalizedRoute}.html`
: false,
fallbackRevalidate: undefined,
fallbackRootParams: undefined,
dataRouteRegex: normalizeRouteRegex(
getNamedRouteRegex(
dataRoute.replace(/\.json$/, ''),
Expand Down
Loading