From 6ee9a2d9b758479c9508968f1d4662ef90c00b7b Mon Sep 17 00:00:00 2001
From: Logan Cook <2997336+MWG-Logan@users.noreply.github.com>
Date: Tue, 23 Dec 2025 17:30:38 -0500
Subject: [PATCH] SWA JSON Fix (#26)
* fix: Add step to copy staticwebapp.config.json
Copy staticwebapp.config.json to the publish folder for deployment.
* Move staticwebapp.config.json file to proj root
* Remove staticwebapp.config.json content update
Removed content update for staticwebapp.config.json.
---
.github/workflows/swa-deploy.yml | 4 ++--
.../Bezalu.ProjectReporting.Web.csproj | 6 ------
.../{wwwroot => }/staticwebapp.config.json | 0
3 files changed, 2 insertions(+), 8 deletions(-)
rename Bezalu.ProjectReporting.Web/{wwwroot => }/staticwebapp.config.json (100%)
diff --git a/.github/workflows/swa-deploy.yml b/.github/workflows/swa-deploy.yml
index ecbe8b3..357be0d 100644
--- a/.github/workflows/swa-deploy.yml
+++ b/.github/workflows/swa-deploy.yml
@@ -37,8 +37,8 @@ jobs:
- name: .NET Publish
run: dotnet publish Bezalu.ProjectReporting.Web -c Release -o Bezalu.ProjectReporting.Web/publish
- - name: List publish output for debugging
- run: ls -al ./Bezalu.ProjectReporting.Web/publish/wwwroot
+ - name: Copy staticwebapp.config.json to Publish Folder
+ run: cp Bezalu.ProjectReporting.Web/staticwebapp.config.json Bezalu.ProjectReporting.Web/publish/wwwroot/staticwebapp.config.json
- name: Build And Deploy
id: builddeploy
diff --git a/Bezalu.ProjectReporting.Web/Bezalu.ProjectReporting.Web.csproj b/Bezalu.ProjectReporting.Web/Bezalu.ProjectReporting.Web.csproj
index 67f8735..55ca680 100644
--- a/Bezalu.ProjectReporting.Web/Bezalu.ProjectReporting.Web.csproj
+++ b/Bezalu.ProjectReporting.Web/Bezalu.ProjectReporting.Web.csproj
@@ -30,12 +30,6 @@
-
-
- PreserveNewest
-
-
-
diff --git a/Bezalu.ProjectReporting.Web/wwwroot/staticwebapp.config.json b/Bezalu.ProjectReporting.Web/staticwebapp.config.json
similarity index 100%
rename from Bezalu.ProjectReporting.Web/wwwroot/staticwebapp.config.json
rename to Bezalu.ProjectReporting.Web/staticwebapp.config.json