question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please include support for "$web" blob container

See original GitHub issue

Recently at Build, support for static website hosting is announced. Static website contents go into a special blob container called “$web”. However this name is not supported by the SDK (only “$root” and “$logs” names are supported). Can we please change the SDK to support “$web” blob container?

I believe we need to change containerNameIsValid method in validate.js file. The modified code should be something like this:

/**
* Validates a container name.
*
* @param {string} containerName The container name.
*/
exports.containerNameIsValid = function (containerName, callback) {
  var fail;
  initCallback(callback, function (f, cb) {
    fail = f;
    callback = cb;
  });

  var nameError = getNameError(containerName, 'Container');

  if (!nameError || containerName.match(/^(\$root|\$logs|\$web)$/)) {
    callback();
    return true;
  } else {
    return fail(nameError);
  }
};

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
XiaoningLiucommented, May 28, 2018

$web support is released in 2.9.0-preview.

0reactions
gmantricommented, May 28, 2018

I just tried it and it works perfectly fine. Thank you team for quick turnaround on this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot access container in a Storage account - Microsoft Q&A
3 Answers · 1) Browse to Storage Account in the Azure Portal · 2) Access Control (IAM) · 3) Grant Access to this...
Read more >
How can I set CORS in Azure BLOB Storage in Portal?
Does anyone know why it still says "Cross-Origin Resource Sharing (CORS) support for Azure Storage is not supported with static website." here: learn.microsoft....
Read more >
Can connect to Storage but cannot view blob containers, file ...
I have installed the latest version of Storage Explorer. ... Please include the details below to help us diagnose your issue.
Read more >
How to use Azure Blob Storage with ASP.NET Core Web API
The first thing we have to do is to create a Storage Account in our Azure Portal. This is used to provide the...
Read more >
Azure.Storage.Blobs 12.14.1 - NuGet
dotnet add package Azure.Storage.Blobs --version 12.14.1 ... library makes it easy to add Azure Active Directory support for authenticating Azure SDK ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found