Skip to content

persistStorybookStatics

persistStorybookStatics(storage, sourceDir, projectId, buildId, db?): Promise<void>

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

Persist an extracted Storybook directory to storage for published serving.

Uses content-addressed deduplication: each file is hashed and stored once under content/<hash>, with a per-build manifest at ${projectId}/builds/${buildId}/storybook/manifest.json.

StorageAdapter

Destination storage adapter.

string

Extracted Storybook directory.

string

Owning project id.

string

Build the files belong to.

DatabaseAdapter

Optional database for content ref tracking (enables GC).

Promise<void>