Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

NextConfigLike interface

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

View as Markdown
import type { NextConfigLike } from '@dioramajs/diorama/next'
interface NextConfigLike

Members

NameTypeDescription
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.