VhsOptions
Defined in: src/config.ts:20
The integration’s options, as a site’s Astro config passes them.
Properties
Section titled “Properties”cacheKey?
Section titled “cacheKey?”
optionalcacheKey?: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.
concurrency?
Section titled “concurrency?”
optionalconcurrency?: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.
optionalenv?:Record<string,string>
Defined in: src/config.ts:34
Environment variable overrides.
formats?
Section titled “formats?”
optionalformats?:VideoFormat[]
Defined in: src/config.ts:36
The video formats to record, in the order the page offers them to browsers.
settings?
Section titled “settings?”
optionalsettings?:Record<string,VhsSetting>
Defined in: src/config.ts:22
Set declarations prepended to every tape.
setup?
Section titled “setup?”
optionalsetup?: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.
teardown?
Section titled “teardown?”
optionalteardown?:string
Defined in: src/config.ts:32
Tape commands injected after recording is completed.
theme?
Section titled “theme?”
optionaltheme?:ThemeOption
Defined in: src/config.ts:24
The theme to render with.