Files
vercel__next.js/errors/invalid-instant-configuration.mdx
Josh Story 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

32 lines
578 B
Plaintext

---
title: Invalid Instant Configuration
---
## Why This Message Occurred
You provided an invalid configuration for `export const instant` in a Layout or Page file.
### Example of Correct Usage
#### Indicating instant UI
```tsx filename="app/[slug]/page.tsx"
export const instant = true
```
#### Customizing the validation level
```tsx filename="app/[slug]/page.tsx"
export const instant = {
level: 'warning',
}
```
#### Indicating that there is no instant UI
This does not disable prefetching.
```tsx filename="app/[slug]/page.tsx"
export const instant = false
```