Skip to content

Commit

Permalink
replace routes with navigationFallback for SPA usage
Browse files Browse the repository at this point in the history
  • Loading branch information
iOvergaard committed May 18, 2022
1 parent 1276156 commit 94cde91
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"routes": [
{
"route": "/*",
"rewrite": "/index.html"
}
],
"navigationFallback": {
"rewrite": "/index.html",
"exclude": [
"*.{jpg,jpeg,gif,png,svg}",
"/assets/*"
]
},
"trailingSlash": "never"
}

0 comments on commit 94cde91

Please sign in to comment.