fix(swa): simplify staticwebapp.config.json to avoid routes.json conflict

This commit is contained in:
xiaohei
2025-12-29 07:49:19 +00:00
parent bd982a83ce
commit e706021329
+10 -20
View File
@@ -1,24 +1,14 @@
{
"buildDetails": {
"appLocation": "/",
"apiLocation": "api",
"outputLocation": ".next",
"appBuildCommand": "npm run build",
"apiLanguage": "node",
"apiVersion": "20"
"navigationFallback": {
"rewrite": "/index.html"
},
"platformErrorOverrides": [
{
"errorType": "NotFound",
"serve": "/404.html"
},
{
"errorType": "Unauthenticated",
"statusCode": 401
},
{
"errorType": "Unauthorized",
"statusCode": 403
"platform": {
"apiRuntime": "node:20"
},
"routes": [],
"responseOverrides": {
"404": {
"rewrite": "/index.html"
}
]
}
}