drupflare/worker - v1.0.0
    Preparing search index...

    Function loadCatalog

    • reads the catalog out of R2, or null when there is none

      Parameters

      • bucket:
            | { get(key: string): Promise<{ text(): Promise<string> } | null> }
            | null
            | undefined
      • key: string = 'catalog.json'

      Returns Promise<Catalog | null>