Skip to content

Commit 85c72fc

Browse files
committed
Update SWA config paths and navigation fallback exclusions
Adjusted app and output locations in Azure SWA deploy config. Added "/_framework/*" to navigation fallback exclusions in staticwebapp.config.json to prevent framework files from being redirected to index.html.
1 parent 176c140 commit 85c72fc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/azure-static-web-app.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ jobs:
6060
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WITTY_FOREST_0C3A9ED10 }}
6161
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
6262
action: "upload"
63-
app_location: "output/wwwroot"
64-
api_location: ""
65-
output_location: "output/wwwroot"
63+
app_location: "/" # Path to your .csproj folder
64+
api_location: "" # Leave empty if no API
65+
output_location: "wwwroot"
6666
skip_api_build: true
6767
skip_app_build: true
6868

BlazorExpress.ChartJS.Demo.WebAssembly/wwwroot/staticwebapp.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"navigationFallback": {
33
"rewrite": "/index.html",
4-
"exclude": [ "/css/*", "/js/*", "/_content/*" ]
4+
"exclude": [ "/_framework/*", "/css/*", "/js/*", "/_content/*" ]
55
},
66
"mimeTypes": {
77
".js": "application/javascript",

0 commit comments

Comments
 (0)