mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What Provide `revalidateReason` in the `errorContext` argument of `onRequestError` API #### API ```ts revalidateReason?: 'on-demand' | 'stale' | undefined ``` ### Why With this property, developer is able to determine if current error is attached to an ISR request. * `stale` means it revalidated due to the cache is expired * `on-demand` means it revalidated due to a user initiated revalidation, e.g. using `res.revalidate` to revalidate certain path ### Misc * We don't generate edge entry of instrumentation when there's no edge routes but instrumentation is presented Note: for PPR case we'll tackle it later with another PPR specific task, since we need to provide the render is a postpone render or just normal render Closes NDX-23
13 lines
219 B
JavaScript
13 lines
219 B
JavaScript
export const metadata = {
|
|
title: 'Next.js',
|
|
description: 'Generated by Next.js',
|
|
}
|
|
|
|
export default function RootLayout({ children }) {
|
|
return (
|
|
<html lang="en">
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|