NextConfigLike interface
The part of a Next config `withDiorama` reads and writes.
import type { NextConfigLike } from '@dioramajs/diorama/next'interface NextConfigLikeMembers
| Name | Type | Description |
|---|---|---|
readonly turbopack? | { readonly resolveAlias?: Readonly<Record<string, unknown>>; readonly rules?: Readonly<Record<string, unknown>> } | Turbopack aliases and loader rules, merged with ours. |
readonly 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.