Skip to content

extractStorybookToScratch

extractStorybookToScratch(storage, scratchDir, projectId, buildId, shardId?, limits?): Promise<string>

Defined in: packages/core/src/capture/statics.ts:41

Extract a build’s stored zip into a dedicated scratch directory. The caller removes it when done (removeJobScratch).

StorageAdapter

Storage holding the uploaded zip.

string

Root under which per-build scratch dirs are created.

string

Owning project id.

string

Build whose zip to extract.

string

Shard extracting it; gives the shard a directory of its own.

ExtractionLimits = DEFAULT_EXTRACTION_LIMITS

Entry and uncompressed-byte caps (safe defaults when omitted).

Promise<string>

The extracted Storybook directory.

When the archive breaks a cap or escapes the target directory.