Repository navigation
Expand file tree
/
Copy pathvercel.json
More file actions
47 lines (47 loc) · 1.54 KB
/
Copy pathvercel.json
File metadata and controls
47 lines (47 loc) · 1.54 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
{
"buildCommand": "bash scripts/build-vercel.sh",
"outputDirectory": "dist",
"functions": {
"api/v1/keepers/[action].ts": { "maxDuration": 60 },
"api/v1/admin/[resource].ts": { "maxDuration": 10 }
},
"redirects": [
{
"source": "/app/admin/:path*",
"destination": "/admin/:path*",
"permanent": true
}
],
"rewrites": [
{ "source": "/app/:path*", "destination": "/app/index.html" },
{ "source": "/admin", "destination": "/app/index.html" },
{ "source": "/admin/:path*", "destination": "/app/index.html" },
{ "source": "/docs/:path*", "destination": "/docs/:path*" }
],
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "X-Frame-Options", "value": "DENY" },
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=63072000; includeSubDomains; preload"
}
]
},
{
"source": "/:base(app|admin)/:path*",
"headers": [
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; connect-src 'self' https://horizon.stellar.org https://horizon-testnet.stellar.org https://ewqw4hx7oa.execute-api.us-east-1.amazonaws.com; frame-src 'none'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'"
}
]
}
]
}