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.
18 lines
604 B
TypeScript
18 lines
604 B
TypeScript
// Same violation as `bare/page.tsx`, but with `instant = { level:
|
|
// 'error' }`. Explicit per-segment override at the same level as the
|
|
// configured 'experimental-error'. Same observable behavior as
|
|
// `bare/page.tsx`; this case proves the override mechanism resolves
|
|
// correctly when the explicit value matches the configured level.
|
|
import { connection } from 'next/server'
|
|
|
|
export const instant = { level: 'experimental-error' as const }
|
|
|
|
export default async function Page() {
|
|
await connection()
|
|
return (
|
|
<main>
|
|
<p>explicit-error: explicit error-level override.</p>
|
|
</main>
|
|
)
|
|
}
|