mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
d424aa8ec4
This API has experimental modes for build validation but the dev validation is going to be stable in the next release.
32 lines
578 B
Plaintext
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
|
|
```
|