Files
Josh StoryandGitHub d424aa8ec4 Stabilize unstable_instant (#94578)
This API has experimental modes for build validation but the dev
validation is going to be stable in the next release.
2026-06-09 13:50:25 -07:00

19 lines
608 B
TypeScript

// Same violation as `bare/page.tsx`, but with `instant = true`.
// `true` is "opt in at the framework default level" — under
// 'experimental-error', this resolves to error-level validation.
// Validation fires in dev and build. Same observable behavior as
// `bare/page.tsx`; this case proves the override mechanism works at the
// same level as the configured one.
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>
)
}