next.js/errors/invalid-instant-configuration.mdx
invalid-instant-configuration.mdx40 lines740 B
---
title: Invalid Instant Configuration
---

## Why This Message Occurred

You provided an invalid configuration for `export const unstable_instant` in a Layout or Page file.

### Example of Correct Usage

#### Static Prefetching

```tsx filename="app/.../layout.tsx"
export const unstable_instant = {
  prefetch: 'static',
}
```

#### Runtime Prefetching

```tsx filename="app/[slug]/page.tsx"
export const unstable_instant = {
  prefetch: 'runtime',
  samples: [
    {
      cookies: [{ name: 'experiment', value: 'A' }],
      params: { slug: 'example' },
    },
  ],
}
```

#### Indicating that there is no instant UI

This does not disable prefetching.

```tsx filename="app/[slug]/page.tsx"
export const unstable_instant = false
```
Quest for Codev2.0.0
/
SIGN IN