Skip to content

SWA deployment fixes#227

Merged
xenobiasoft merged 2 commits into
mainfrom
feature/swa-deployment-fixes
Apr 16, 2026
Merged

SWA deployment fixes#227
xenobiasoft merged 2 commits into
mainfrom
feature/swa-deployment-fixes

Conversation

@xenobiasoft
Copy link
Copy Markdown
Owner

@xenobiasoft xenobiasoft commented Apr 16, 2026

Description

Fixes some deployment issues with the SWA. Bumps up the SWA tier.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Other (please describe):

Changes Made

  • Adds a staticwebapp.config.json file
  • Fixes SWA app name
  • Bumps up SWA tier from Free to Standard

Testing

  • I have tested these changes locally
  • All existing tests pass
  • I have added new tests (if applicable)

Screenshots (if applicable)

Checklist

  • My code follows the project's coding standards
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have updated the documentation (if necessary)

Copy link
Copy Markdown

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 aims to resolve Azure Static Web Apps (SWA) deployment/runtime issues by adding SWA routing configuration, correcting deployment naming, and moving the SWA resource to the Standard tier.

Changes:

  • Added staticwebapp.config.json to support SPA navigation fallback behavior in the React frontend.
  • Updated the GitHub Actions workflow to correct the target Web App name and pass VITE_API_BASE_URL during the React build.
  • Changed the SWA Bicep module SKU from Free to Standard and included the module in the solution.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/frontend/Sudoku.React/public/staticwebapp.config.json Introduces SWA navigation fallback + MIME type config for the React SPA.
infra/modules/staticwebapp.bicep Updates SWA SKU to Standard tier.
Sudoku.sln Adds the SWA Bicep module into the solution’s infra modules list.
.github/workflows/main.yml Fixes Web App name casing, injects VITE_API_BASE_URL for frontend build, and tightens deploy job conditions.

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

Comment thread .github/workflows/main.yml
{
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/images/*", "/css/*", "/js/*", "*.{png,jpg,svg,ico,json,woff,woff2,ttf,eot}"]
@xenobiasoft xenobiasoft merged commit e06628f into main Apr 16, 2026
2 checks passed
@xenobiasoft xenobiasoft deleted the feature/swa-deployment-fixes branch April 16, 2026 14:01
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