Config
Defined in: types.ts:182
Global configuration for the snapshot integration. Defines which pages to capture, default behavior, and Puppeteer launch settings.
Example
Section titled “Example”Properties
Section titled “Properties”defaults?
Section titled “defaults?”
optionaldefaults?:Omit<ScreenshotConfig,"outputPath">
Defined in: types.ts:213
Default configuration applied to all pages.
Can be overridden per page in pages.
Example
Section titled “Example”launchOptions?
Section titled “launchOptions?”
optionallaunchOptions?:LaunchOptions
Defined in: types.ts:225
Options to pass to Puppeteer’s launch() method.
Example
Section titled “Example”pages:
Record<string,ScreenshotConfig[]>
Defined in: types.ts:198
Map of page paths or external URLs to their screenshot configurations.
Keys can be:
- A local page path (ex.
'/','/about') served via the local build server. - An absolute
http://orhttps://URL loaded directly without the local server.
Example
Section titled “Example”
optionalport?:number
Defined in: types.ts:237
Port for the local server during build. Used to render pages before screenshot generation.