@armhil/azure-blob-static-content-uploader

A blob uploader to multiple storage accounts

Usage no npm install needed!

<script type="module">
  import armhilAzureBlobStaticContentUploader from 'https://cdn.skypack.dev/@armhil/azure-blob-static-content-uploader';
</script>

README

azure-blob-static-content-uploader

A static content uploader to upload files to Azure Blob Storage accounts.

A static-content-config.json file is required at the root of the react-app or whatever static content we're building. The schema should be like

{
    "appName": "easy-references",
    "initialDirectoryName": "taskpane",
    "uploadDirectory": "build",
    "accountName": "easyaddins%REGION%",
    "connectionString": "DefaultEndpointsProtocol=https;AccountName=%ACCOUNTNAME%;AccountKey=%ACCESSKEY%;EndpointSuffix=core.windows.net",
    "supportedRegions": {
        "ause": "",
    }
}

If the initialDirectoryName is undefined or empty, it will upload the files to the base path.