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).
Parameters
Section titled “Parameters”storage
Section titled “storage”Storage holding the uploaded zip.
scratchDir
Section titled “scratchDir”string
Root under which per-build scratch dirs are created.
projectId
Section titled “projectId”string
Owning project id.
buildId
Section titled “buildId”string
Build whose zip to extract.
shardId?
Section titled “shardId?”string
Shard extracting it; gives the shard a directory of its own.
limits?
Section titled “limits?”ExtractionLimits = DEFAULT_EXTRACTION_LIMITS
Entry and uncompressed-byte caps (safe defaults when omitted).
Returns
Section titled “Returns”Promise<string>
The extracted Storybook directory.
Throws
Section titled “Throws”When the archive breaks a cap or escapes the target directory.