Skip to content

VhsOptions

Defined in: src/config.ts:20

The integration’s options, as a site’s Astro config passes them.

optional cacheKey?: CacheKeyFn

Defined in: src/config.ts:42

Customizes the cache key for each recording. Defaults to hashing the recording recipe (composed tape + effective environment). Extend defaultKey to add extra invalidation inputs (such as a CLI version or external rc files), or return a custom key to override it.


optional concurrency?: number

Defined in: src/config.ts:48

How many recordings run at once. Defaults to a quarter of the machine’s cores, at least 1.

Set 1 when tapes share state outside $VHS_SCRATCH, such as a fixed port or tmux socket.


optional env?: Record<string, string>

Defined in: src/config.ts:34

Environment variable overrides.


optional formats?: VideoFormat[]

Defined in: src/config.ts:36

The video formats to record, in the order the page offers them to browsers.


optional settings?: Record<string, VhsSetting>

Defined in: src/config.ts:22

Set declarations prepended to every tape.


optional setup?: string

Defined in: src/config.ts:30

Tape commands injected before recording is started.

Useful if you need to do some shenanigans prior to recording.


optional teardown?: string

Defined in: src/config.ts:32

Tape commands injected after recording is completed.


optional theme?: ThemeOption

Defined in: src/config.ts:24

The theme to render with.