Skip to content

Commit 1874c13

Browse files
Add navigationFallback for SWA
1 parent 69e4565 commit 1874c13

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

staticwebapp.config.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
2-
"routes": [
3-
{
4-
"route": "/",
5-
"methods": [
6-
"get"
7-
],
8-
"rewrite": "/",
9-
"redirect": "/"
10-
}
11-
]
2+
"navigationFallback": {
3+
"rewrite": "/index.html",
4+
"exclude": [
5+
"/assets/*",
6+
"/*.css",
7+
"/*.js",
8+
"/*.png",
9+
"/*.jpg",
10+
"/*.webp",
11+
"/*.svg",
12+
"/*.ico"
13+
]
14+
}
1215
}

0 commit comments

Comments
 (0)