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.
19 lines
599 B
TypeScript
19 lines
599 B
TypeScript
// Same violation as `bare/page.tsx`, but with `instant = true`.
|
|
// `true` is "opt in at the framework default level" — under
|
|
// 'experimental-manual-error', this resolves to error-level validation.
|
|
// Validation fires in dev and build. Unlike `bare/page.tsx` (which is
|
|
// skipped in manual mode), the explicit opt-in here pulls this page into
|
|
// validation.
|
|
import { connection } from 'next/server'
|
|
|
|
export const instant = true
|
|
|
|
export default async function Page() {
|
|
await connection()
|
|
return (
|
|
<main>
|
|
<p>explicit-true: opt in at the framework default level.</p>
|
|
</main>
|
|
)
|
|
}
|