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
650 B
TypeScript
18 lines
650 B
TypeScript
// Bare page (no `instant` config). Under 'experimental-error',
|
|
// implicit validation fires on this page in dev AND in build — error level
|
|
// applies to both modes. The runtime data accessed at the top of the page is the
|
|
// "Suspense too high for instant navigation" violation that instant
|
|
// validation specifically flags. The root layout's Suspense satisfies
|
|
// static-shell validation, so the only error in dev/build is the instant
|
|
// one.
|
|
import { connection } from 'next/server'
|
|
|
|
export default async function Page() {
|
|
await connection()
|
|
return (
|
|
<main>
|
|
<p>bare page (no instant), runtime data at the top.</p>
|
|
</main>
|
|
)
|
|
}
|