Skip to content

Conversation

@MWG-Logan
Copy link
Owner

  • 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.

* 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.
Copilot AI review requested due to automatic review settings December 23, 2025 22:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the deployment of the staticwebapp.config.json file for Azure Static Web Apps by moving it from the wwwroot directory to the project root and updating the deployment workflow to manually copy it to the publish output. This ensures the configuration file is properly included in the deployed application.

Key Changes:

  • Moved staticwebapp.config.json from wwwroot/ to project root (Bezalu.ProjectReporting.Web/)
  • Removed the MSBuild Content Update directive that was copying the file from wwwroot
  • Added a workflow step to explicitly copy the config file to the publish output folder

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
Bezalu.ProjectReporting.Web/staticwebapp.config.json New file defining Azure Static Web Apps routing and authentication configuration with AAD integration
Bezalu.ProjectReporting.Web/Bezalu.ProjectReporting.Web.csproj Removed obsolete Content Update section that was copying staticwebapp.config.json from wwwroot
.github/workflows/swa-deploy.yml Added workflow step to copy staticwebapp.config.json from project root to publish output wwwroot folder

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://mango-river-0addcf70f-27.eastus2.2.azurestaticapps.net

@MWG-Logan MWG-Logan merged commit 6ee9a2d into main Dec 23, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants