diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index a2e5856..bf162ee 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - feature/fix-routing jobs: dev-deploy: diff --git a/infrastructure/staticwebapp.config.json b/infrastructure/staticwebapp.config.json new file mode 100644 index 0000000..e269f2c --- /dev/null +++ b/infrastructure/staticwebapp.config.json @@ -0,0 +1,16 @@ +{ + "trailingSlash": "auto", + "navigationFallback": { + "rewrite": "index.html", + "exclude": ["/images/*.{png,jpg,gif}", "/css/*"] + }, + "responseOverrides": { + "401": { + "redirect": "/Login", + "statusCode": 302 + }, + "404": { + "rewrite": "/404.html" + } + } +}