Skip to main content

Azure BlobStorage

The Azure Storage provides BlobStorage which can be used as storage for StoryBooker.

Install

npm i @storybooker/azure @azure/storage-blob

Usage

import { BlobServiceClient } from "@azure/storage-blob";
import { AzureBlobStorageService } from "@storybooker/azure/blob-storage";

// Your connection string
const connectionString = process.env["AZURE_STORAGE_CONNECTION_STRING"];
// Initialize the BlobServiceClient
const client = BlobServiceClient.fromConnectionString(connectionString);
// Create the Storage service adapter
const storage = new AzureBlobStorageService(client);

// use as `storage` in StoryBooker hosting options.