interface RequestMeta {
    PagesErrorDebug?: ((__namedParameters) => "/home/runner/work/amplify-js/amplify-js/amplify-js/node_modules/@types/react/jsx-runtime");
    bubbleNoFallback?: true;
    cacheBustingSearchParam?: string;
    clonableBody?: CloneableBody;
    customErrorRender?: true;
    defaultLocale?: string;
    devFallbackParams?: OpaqueFallbackRouteParams;
    devGenerateStaticParamsDuration?: bigint;
    devRequestTimingInternalsEnd?: bigint;
    devRequestTimingMiddlewareEnd?: bigint;
    devRequestTimingMiddlewareStart?: bigint;
    devRequestTimingStart?: bigint;
    developmentNotFoundSourcePage?: string;
    didStripLocale?: boolean;
    distDir?: string;
    incrementalCache?: IncrementalCache;
    initProtocol?: string;
    initQuery?: ParsedUrlQuery;
    initURL?: string;
    invokeError?: Error;
    invokeOutput?: string;
    invokePath?: string;
    invokeQuery?: Record<string, undefined | string | string[]>;
    invokeStatus?: number;
    isLocaleDomain?: boolean;
    isNextDataReq?: true;
    isPrefetchRSCRequest?: true;
    isRSCRequest?: true;
    locale?: string;
    localeInferredFromDefault?: true;
    match?: RouteMatch<RouteDefinition<RouteKind>>;
    middlewareCookie?: string[];
    middlewareInvoke?: boolean;
    minimalMode?: boolean;
    notFoundRevalidate?: number | false;
    onCacheEntry?: OnCacheEntryHandler;
    onCacheEntryV2?: OnCacheEntryHandler;
    params?: ParsedUrlQuery;
    postponed?: string;
    query?: ParsedUrlQuery;
    relativeProjectDir?: string;
    renderFallbackShell?: boolean;
    rewroteURL?: string;
    segmentPrefetchRSCRequest?: string;
    serverComponentsHmrCache?: ServerComponentsHmrCache;
}

Properties

ErrorOverlay component to use in development for pages router

bubbleNoFallback?: true

Whether to bubble up the NoFallbackError to the caller when a 404 is returned.

cacheBustingSearchParam?: string

A search param set by the Next.js client when performing RSC requests. Because some CDNs do not vary their cache entries on our custom headers, this search param represents a hash of the header values. For any cached RSC request, we should verify that the hash matches before responding. Otherwise this can lead to cache poisoning. TODO: Consider not using custom request headers at all, and instead encode everything into the search param.

clonableBody?: CloneableBody

The body that was read from the request. This is used to allow the body to be read multiple times.

customErrorRender?: true

Whether the request is for the custom error page.

defaultLocale?: string

The default locale that was inferred or explicitly set for the request.

devFallbackParams?: OpaqueFallbackRouteParams

DEV only: The fallback params that should be used when validating prerenders during dev

devGenerateStaticParamsDuration?: bigint

DEV only: The duration of getStaticPaths/generateStaticParams in process.hrtime.bigint()

devRequestTimingInternalsEnd?: bigint
devRequestTimingMiddlewareEnd?: bigint
devRequestTimingMiddlewareStart?: bigint
devRequestTimingStart?: bigint

DEV only: Request timings in process.hrtime.bigint()

developmentNotFoundSourcePage?: string

In development, the original source page that returned a 404.

didStripLocale?: boolean

True when the request had locale information stripped from the pathname part of the URL.

distDir?: string

The dist directory the server is currently using

incrementalCache?: IncrementalCache

The incremental cache to use for the request.

initProtocol?: string

The protocol that was used to make the request.

initQuery?: ParsedUrlQuery

The query that was used to make the request.

initURL?: string

The URL that was used to make the request.

invokeError?: Error

The routing error we are invoking with

invokeOutput?: string

The specific page output we should be matching

invokePath?: string

The path we routed to and should be invoked

invokeQuery?: Record<string, undefined | string | string[]>

The query parsed for the invocation

invokeStatus?: number

The status we are invoking the request with from routing

isLocaleDomain?: boolean

True when the request matched a locale domain that was configured in the next.config.js file.

isNextDataReq?: true

True when the request is for the /_next/data route using the pages router.

isPrefetchRSCRequest?: true

True when the request is for the prefetch flight data.

isRSCRequest?: true

True when the request is for the flight data.

locale?: string

The locale that was inferred or explicitly set for the request.

localeInferredFromDefault?: true

True when the request had locale information inferred from the default locale.

The match on the request for a given route.

middlewareCookie?: string[]

The cookies that were added by middleware and were added to the response.

middlewareInvoke?: boolean

Whether the request is a middleware invocation

minimalMode?: boolean

Whether server is in minimal mode (this will be replaced with more specific flags in future)

notFoundRevalidate?: number | false

The previous revalidate before rendering 404 page for notFound: true

onCacheEntry?: OnCacheEntryHandler

If provided, this will be called when a response cache entry was generated or looked up in the cache.

Deprecated

Use onCacheEntryV2 instead.

onCacheEntryV2?: OnCacheEntryHandler

If provided, this will be called when a response cache entry was generated or looked up in the cache.

The params after resolving routes

postponed?: string

Postponed state to use for resumption. If present it's assumed that the request is for a page that has postponed (there are no guarantees that the page actually has postponed though as it would incur an additional cache lookup).

The query after resolving routes

relativeProjectDir?: string

The relative project dir the server is running in from project root

renderFallbackShell?: boolean

Whether the request should render the fallback shell or not.

rewroteURL?: string

If the request had it's URL rewritten, this is the URL it was rewritten to.

segmentPrefetchRSCRequest?: string

Equals the segment path that was used for the prefetch RSC request.

serverComponentsHmrCache?: ServerComponentsHmrCache

The server components HMR cache, only for dev.