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
469 B
TypeScript
17 lines
469 B
TypeScript
// Page explicitly opts out of instant validation. Under the framework
|
|
// default (`'warning'`), this segment-level override suppresses the
|
|
// implicit validation that would otherwise fire on a bare page, so no
|
|
// redbox appears.
|
|
import { connection } from 'next/server'
|
|
|
|
export const instant = false
|
|
|
|
export default async function Page() {
|
|
await connection()
|
|
return (
|
|
<main>
|
|
<p>explicit-false page (segment opts out of validation).</p>
|
|
</main>
|
|
)
|
|
}
|