Azure / Azure/static-web-apps

SWA not serving all deployed files

Open
#1,563 14 comments 6 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

SWA hosting is causing files to 404.
If we try and redeploy the same commit that we deployed successfully on a previous date, then the build appears to be successful, but browsing to our SWA seems to cause random files to not be deployed, resulting in 404s and page load issues. We are deploying a Blazor app using the AzureStaticWebApp@0 task. at version 0.247.1. This version is UNCHANGED and so is not the tasks fault.

Without any way to browse the SWAs content from the portal. I'm unable to verify if these files actually exist. They have always existed before and we've not changed anything so my assumption is the SWA is at fault, not our files/deployment.

Initially raised [here](https://github.com/actions/runner-images/issues/10828)

**To Reproduce**
deploy using AzureStaticWebApp@0 to a SWA site in Azure.
Attempt to browse to the site after deployment
From dev tools, notice random 404s on files

**Expected behavior**
A fully working deployment of our SWA

**Screenshots**

![Image](https://github.com/user-attachments/assets/d3ca5edc-b90c-4265-bfa7-5b8e25942002)

**Device info (if applicable):**
- OS: Windows 11
- Browser Firefox, but also fails on chrome and Edge
- Version 131.0.3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.