-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstaticwebapp.preview.config.json
More file actions
61 lines (60 loc) · 1.16 KB
/
staticwebapp.preview.config.json
File metadata and controls
61 lines (60 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"routes": [
{
"route": "/api/schema",
"methods": ["GET"],
"allowedRoles": ["anonymous"]
},
{
"route": "/api/*",
"methods": ["GET"],
"allowedRoles": ["anonymous"]
},
{
"route": "/api/rules/execute",
"methods": ["POST"],
"allowedRoles": ["anonymous"]
},
{
"route": "/api/*",
"methods": ["PUT", "POST", "PATCH", "DELETE"],
"allowedRoles": ["authenticated"]
},
{
"route": "/api/*",
"allowedRoles": ["anonymous"]
},
{
"route": "/*",
"allowedRoles": ["anonymous"]
}
],
"navigationFallback": {
"rewrite": "index.html",
"exclude": ["/images/*.{png,jpg,gif}", "/*.{css,scss,js}"]
},
"responseOverrides": {
"400": {
"rewrite": "/invalid-invitation-error.html"
},
"401": {
"rewrite": "/index.html",
"statusCode": 200
},
"403": {
"rewrite": "/index.html",
"statusCode": 200
},
"404": {
"rewrite": "/404.html"
}
},
"mimeTypes": {
".json": "text/json",
".js": "text/javascript",
".css": "text/css"
},
"platform": {
"apiRuntime": "node:20"
}
}