-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatic.json
More file actions
35 lines (35 loc) · 849 Bytes
/
Copy pathstatic.json
File metadata and controls
35 lines (35 loc) · 849 Bytes
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
{
"root": "build/",
"https_only": false,
"routes": {
"/static/*": "/static/",
"/**": "index.html"
},
"proxies": {
"/api/": {
"origin": "${API_URL}"
}
},
"headers": {
"/**": {
"Cache-Control": "no-store, no-cache",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "deny",
"X-XSS-Protection": "1; mode=block"
},
"/static/**": {
"Cache-Control": "public, max-age=31536000"
},
"/index.html": {
"Cache-Control": "must_revalidate, public, max-age=3600"
},
"/api/**": {
"Cache-Control": "no-cache, must-revalidate",
"Expires": "-1",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST, GET, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type",
"Access-Control-Max-Age": 600
}
}
}