# withDiorama

function in `@dioramajs/diorama/next`

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

Wraps a Next config so the effects folder becomes `@dioramajs/diorama/generated`.

```ts
function withDiorama<T extends object = NextConfigLike>(
  config: T & NextConfigLike,
  options?: WithDioramaOptions,
): T
```

| Parameter | Type | Description |
| --- | --- | --- |
| `config` | `T & NextConfigLike` |  |
| `options?` | `WithDioramaOptions` |  |

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