Repository navigation
Expand file tree
/
Copy pathvercel.json
More file actions
32 lines (32 loc) · 1.75 KB
/
Copy pathvercel.json
File metadata and controls
32 lines (32 loc) · 1.75 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
{
"buildCommand": "pnpm run build && node scripts/check-dist-secrets.mjs dist",
"outputDirectory": "dist",
"framework": "umijs",
"installCommand": "pnpm install --frozen-lockfile",
"rewrites": [
{ "source": "/api/(.*)", "destination": "/api/not-configured" },
{ "source": "/((?!api(?:/|$)).*)", "destination": "/index.html" }
],
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" },
{ "key": "X-Frame-Options", "value": "SAMEORIGIN" },
{ "key": "Strict-Transport-Security", "value": "max-age=31536000" },
{
"key": "Permissions-Policy",
"value": "camera=(), microphone=(), geolocation=(), payment=(), usb=(), fullscreen=(self)"
},
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; base-uri 'self'; form-action 'self'; object-src 'none'; frame-ancestors 'self'; script-src 'self' 'unsafe-eval' https://webapi.amap.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://*.amap.com https://*.autonavi.com https://tile.openstreetmap.org https://*.basemaps.cartocdn.com https://ion.cesium.com https://api.cesium.com https://assets.ion.cesium.com https://*.virtualearth.net; connect-src 'self' blob: https://*.amap.com https://*.autonavi.com https://tile.openstreetmap.org https://*.basemaps.cartocdn.com https://ion.cesium.com https://api.cesium.com https://assets.ion.cesium.com https://*.virtualearth.net; font-src 'self' data:; media-src 'self' blob: https://sf1-cdn-tos.huoshanstatic.com; worker-src 'self' blob:; frame-src 'self'"
}
]
}
],
"github": {
"silent": true
}
}