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.
Parameters
Section titled “Parameters”storage
Section titled “storage”Destination storage adapter.
sourceDir
Section titled “sourceDir”string
Extracted Storybook directory.
projectId
Section titled “projectId”string
Owning project id.
buildId
Section titled “buildId”string
Build the files belong to.
Optional database for content ref tracking (enables GC).
Returns
Section titled “Returns”Promise<void>