fix(swa): simplify staticwebapp.config.json to avoid routes.json conflict
This commit is contained in:
+10
-20
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user