# @dioramajs/diorama/next

Next.js wrapper that writes the effect registry for webpack and Turbopack.

## Functions and values

- [nextModule](/docs/api/diorama-next/next-module.md): Lazy imports with their metadata and the registry's types in one file.
- [withDiorama](/docs/api/diorama-next/with-diorama.md): Wraps a Next config so the effects folder becomes `@dioramajs/diorama/generated`.

## Types

- [NextConfigLike](/docs/api/diorama-next/types/next-config-like.md): The part of a Next config `withDiorama` reads and writes.
- [WithDioramaOptions](/docs/api/diorama-next/types/with-diorama-options.md): Options of `withDiorama`.
