mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This API has experimental modes for build validation but the dev validation is going to be stable in the next release.
12 lines
428 B
TypeScript
12 lines
428 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
// This layout requires instant UI with static prefetching.
|
|
// Even though the page below opts out with `false`, this layout's
|
|
// config still triggers validation at depths where both the layout
|
|
// and the page are in the new tree.
|
|
export const instant = { level: 'experimental-error' }
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return <div>{children}</div>
|
|
}
|