Skip to content

buildGifRefIndex

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-13-upload/video-directive.ts

Map every GIF token ref (<slug>--sNN, the file basename without .gif) to its resolved CDN url, across all page manifests.

Signature

ts
function buildGifRefIndex(manifests: Record<string, ManualVideoManifest>, resolveUrl: (relPath: string) => string | undefined): Map<string, string>

Parameters

NameType
manifestsRecord<string, ManualVideoManifest>
resolveUrl`(relPath: string) => string

Returns: Map<string, string>

Was this page helpful?

Download as PDF