# NextConfigLike

interface in `@dioramajs/diorama/next`

```ts
import type { NextConfigLike } from '@dioramajs/diorama/next'
```

The part of a Next config `withDiorama` reads and writes.

```ts
interface NextConfigLike
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `turbopack?` | `{ readonly resolveAlias?: Readonly<Record<string, unknown>>; readonly rules?: Readonly<Record<string, unknown>> }` | Turbopack aliases and loader rules, merged with ours. |
| `webpack?` | `(config: WebpackConfig, context: unknown) => WebpackConfig \| null` | The site's webpack hook. It runs first, then ours adds the alias and the GLSL rule. |

Defined in [packages/diorama/src/next.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/diorama/src/next.ts#L29).
