From 547261c297d172e4470645f93000fdd40ff049f3 Mon Sep 17 00:00:00 2001 From: hakimzuldev Date: Thu, 20 Mar 2025 16:39:00 +0800 Subject: [PATCH] UPDATE: Azure Storage custom domain is enabled via ENV --- api/script/storage/azure-storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/script/storage/azure-storage.ts b/api/script/storage/azure-storage.ts index 7325c61c..d91227a6 100644 --- a/api/script/storage/azure-storage.ts +++ b/api/script/storage/azure-storage.ts @@ -873,7 +873,7 @@ export class AzureStorage implements storage.Storage { const blobStorageCredential = new StorageSharedKeyCredential(_accountName, _accountKey); const tableServiceUrl = `https://${_accountName}.table.core.windows.net`; - const blobServiceUrl = `https://${_accountName}.blob.core.windows.net`; + const blobServiceUrl = process.env.AZURE_STORAGE_CUSTOM_DOMAIN ?? `https://${_accountName}.blob.core.windows.net`; tableServiceClient = new TableServiceClient(tableServiceUrl, tableStorageCredential, { retryOptions: {