Optional PagesErrorOverlay component to use in development for pages router
Optional bubbleWhether to bubble up the NoFallbackError to the caller when a 404 is returned.
Optional cacheA 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.
Optional clonableThe body that was read from the request. This is used to allow the body to be read multiple times.
Optional customWhether the request is for the custom error page.
Optional defaultThe default locale that was inferred or explicitly set for the request.
Optional devDEV only: The fallback params that should be used when validating prerenders during dev
Optional devDEV only: The duration of getStaticPaths/generateStaticParams in process.hrtime.bigint()
Optional devOptional devOptional devOptional devDEV only: Request timings in process.hrtime.bigint()
Optional developmentIn development, the original source page that returned a 404.
Optional didTrue when the request had locale information stripped from the pathname part of the URL.
Optional distThe dist directory the server is currently using
Optional incrementalThe incremental cache to use for the request.
Optional initThe protocol that was used to make the request.
Optional initThe query that was used to make the request.
Optional initURLThe URL that was used to make the request.
Optional invokeThe routing error we are invoking with
Optional invokeThe specific page output we should be matching
Optional invokeThe path we routed to and should be invoked
Optional invokeThe query parsed for the invocation
Optional invokeThe status we are invoking the request with from routing
Optional isTrue when the request matched a locale domain that was configured in the next.config.js file.
Optional isTrue when the request is for the /_next/data route using the pages
router.
Optional isTrue when the request is for the prefetch flight data.
Optional isRSCRequestTrue when the request is for the flight data.
Optional localeThe locale that was inferred or explicitly set for the request.
Optional localeTrue when the request had locale information inferred from the default locale.
Optional matchThe match on the request for a given route.
Optional middlewareThe cookies that were added by middleware and were added to the response.
Optional middlewareWhether the request is a middleware invocation
Optional minimalWhether server is in minimal mode (this will be replaced with more specific flags in future)
Optional notThe previous revalidate before rendering 404 page for notFound: true
Optional onIf provided, this will be called when a response cache entry was generated or looked up in the cache.
Use onCacheEntryV2 instead.
Optional onIf provided, this will be called when a response cache entry was generated or looked up in the cache.
Optional paramsThe params after resolving routes
Optional postponedPostponed 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).
Optional queryThe query after resolving routes
Optional relativeThe relative project dir the server is running in from project root
Optional renderWhether the request should render the fallback shell or not.
Optional rewroteURLIf the request had it's URL rewritten, this is the URL it was rewritten to.
Optional segmentEquals the segment path that was used for the prefetch RSC request.
Optional serverThe server components HMR cache, only for dev.
ErrorOverlay component to use in development for pages router