Reputation: 399
Is there a way to view the files uploaded to Azure Static Web App using Azure Portal? I need to check few items. I can see the file in my DevOps Repo but want to confirm it is located in the correct folder structure in Azure Static Web App. Please note that this is not Azure Blob Storage.
Upvotes: 37
Views: 7562
Reputation: 51
Right now (at least for Free SKU) it is not possible to view files like it was for Static Website inside Blob storage when you go to $web container. But you can see connected source that is Azure DevOps in my case, as well as deployment history.
See image with explanation:
Upvotes: 3
Reputation: 41
Even though this is an old question, I still had this problem when someone wanted this functionality for one of our apps. In our instance, we're simply hosting static files in the default $web container of the storage account. One of our developers asked if it was possible to have directorty browsing, like we did when we previously hosted these files with Apache?
I tried many different things but couldn't make anything stick. Maybe it's my abilities, maybe it's by design, but after spending almost a day trying to make it work - I ended up with a simple, but somewhat dirty hack.
During the Azure Devops pipeline I use to build and create the artifact, I install the Linux tool "tree".
Lets simply call the folder that contains our code, "code". I created a script that runs after the code has been built and it's ready for packaging. It contains this simple command: find . -type d -exec tree -H . -o '{}/tree.html' ;
https://example.com/tree.html contains the tree structure of the published app.
It's not pretty, but it serves the purpose of listing the structure and containing files.
Upvotes: 4