Skip to content

CatalogLoader

Defined in: packages/core/src/capture/catalog/load.ts:11

Reads catalogs; one per app, so the cache is shared by every request.

load(projectId, buildId): Promise<Catalog | null>

Defined in: packages/core/src/capture/catalog/load.ts:13

The build’s catalog, or null when it has no catalog and no readable index.

string

string

Promise<Catalog | null>


refresh(projectId, buildId): Promise<Catalog | null>

Defined in: packages/core/src/capture/catalog/load.ts:15

Catalogue the build again from its statics (a publish ended) and cache the result.

string

string

Promise<Catalog | null>