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.
18 lines
486 B
TypeScript
18 lines
486 B
TypeScript
import { connection } from 'next/server'
|
|
|
|
export const instant = false
|
|
|
|
export default async function Page() {
|
|
await connection()
|
|
return (
|
|
<main>
|
|
<p>
|
|
This is a blocking page. It is configured with{' '}
|
|
<code>instant = false</code>, but it's located under a layout with{' '}
|
|
<code>{`instant = { prefetch: 'static' }`}</code>. Ideally, we'd honor
|
|
the static assertion and require that a static shell is produced.
|
|
</p>
|
|
</main>
|
|
)
|
|
}
|