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

    Function loadCatalog

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

      Parameters

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

      Returns Promise<Catalog | undefined>