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.
17 lines
510 B
TypeScript
17 lines
510 B
TypeScript
// Same violation as `bare/page.tsx`, but with `instant = { level:
|
|
// 'warning' }`. Explicit warning-level opt-in: instant validation fires
|
|
// in dev (and takes priority over the static-shell error since instant
|
|
// is active); build does not validate.
|
|
import { connection } from 'next/server'
|
|
|
|
export const instant = { level: 'warning' as const }
|
|
|
|
export default async function Page() {
|
|
await connection()
|
|
return (
|
|
<main>
|
|
<p>explicit-warning: explicit warning-level opt-in.</p>
|
|
</main>
|
|
)
|
|
}
|