Skip to content

Config

Defined in: types.ts:86

Global configuration for the snapshot integration. Defines which pages to capture, default behavior, and Puppeteer launch settings.

optional defaults?: Omit<ScreenshotConfig, "outputPath">

Defined in: types.ts:97

Default configuration applied to all pages. Can be overridden per page in pages.


optional launchOptions?: LaunchOptions

Defined in: types.ts:103

Puppeteer launch options.

https://pptr.dev/api/puppeteer.launchoptions


pages: Record<string, ScreenshotConfig[]>

Defined in: types.ts:91

Map of page paths to their screenshot configurations. Each key represents a route (e.g., ”/”, “/about”, “/blog/post-1”).


optional port?: number

Defined in: types.ts:110

Port for the local server during build. Used to render pages before screenshot generation.

4322