Skip to content

BuildStateDeps

Defined in: packages/core/src/capture/build-state/types.ts:13

What delivering a build’s state needs.

config: Pick<ShelfConfig, "publishedBaseDomain">

Defined in: packages/core/src/capture/build-state/types.ts:22

The published-Storybook domain for Storybook links.


db: DatabaseAdapter

Defined in: packages/core/src/capture/build-state/types.ts:14


flags: (project) => BuildStateFlags

Defined in: packages/core/src/capture/build-state/types.ts:29

Which statuses a project’s builds show: testing from the server options, review from the project.

Project

BuildStateFlags


logger: Logger

Defined in: packages/core/src/capture/build-state/types.ts:30


notifiers: readonly NotifierProvider[]

Defined in: packages/core/src/capture/build-state/types.ts:18

Notifier providers; only the state ones (git hosts) take part.


publicOrigin: () => Promise<string | undefined>

Defined in: packages/core/src/capture/build-state/types.ts:27

The resolved public origin (ADR 0007, decision 6): the origin every link starts with. While it resolves to nothing, no state is requested or delivered (ADR 0014, decision 11).

Promise<string | undefined>


secret: SecretInput

Defined in: packages/core/src/capture/build-state/types.ts:20

Server secret that decrypts channel tokens.


optional storage?: StorageAdapter

Defined in: packages/core/src/capture/build-state/types.ts:16

Read to tell whether the build’s Storybook is published; without it publishing reads as pending.