Astlide API Reference
    Preparing search index...

    Function openTemplateStore

    • A store from a location string:

      • a folder path
      • s3://<bucket>/<prefix>: credentials and region from the AWS SDK's usual chain; for R2, MinIO and the like, AWS_ENDPOINT_URL_S3 (bucket in the path)
      • gs://<bucket>/<prefix>: Application Default Credentials; STORAGE_EMULATOR_HOST for an emulator
      • azure://<container>/<prefix>: AZURE_STORAGE_CONNECTION_STRING, or AZURE_STORAGE_ACCOUNT with AZURE_STORAGE_KEY, AZURE_STORAGE_SAS_TOKEN or a Microsoft Entra ID sign-in (DefaultAzureCredential); AZURE_STORAGE_BLOB_ENDPOINT for another endpoint (Azurite, sovereign clouds)

      Nothing is contacted until the store is used.

      Parameters

      • location: string
      • env: Record<string, string | undefined> = process.env

      Returns TemplateStore

      openTemplateStore("./templates");
      openTemplateStore("s3://acme-assets/astlide/templates");