Skip to content

Commit

Permalink
Add staticwebapp config
Browse files Browse the repository at this point in the history
  • Loading branch information
duckth committed Nov 10, 2023
1 parent dcc9fe6 commit 9118a6c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- feature/fix-routing

jobs:
dev-deploy:
Expand Down
16 changes: 16 additions & 0 deletions infrastructure/staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

0 comments on commit 9118a6c

Please sign in to comment.