mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This API has experimental modes for build validation but the dev validation is going to be stable in the next release.
17 lines
486 B
TypeScript
17 lines
486 B
TypeScript
// Same violation as `bare/page.tsx`, but with `instant = false`.
|
|
// The explicit opt-out should suppress implicit validation entirely — no
|
|
// instant redbox in dev, no build failure, despite the runtime data
|
|
// access at the top of the page.
|
|
import { connection } from 'next/server'
|
|
|
|
export const instant = false
|
|
|
|
export default async function Page() {
|
|
await connection()
|
|
return (
|
|
<main>
|
|
<p>explicit-false: explicit opt-out suppresses validation.</p>
|
|
</main>
|
|
)
|
|
}
|