Repository navigation
Expand file tree
/
Copy pathvercel.json
More file actions
96 lines (96 loc) · 2.75 KB
/
Copy pathvercel.json
File metadata and controls
96 lines (96 loc) · 2.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
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; script-src 'self' 'sha256-/kvpBYl+3xsGjx6GC5lquiRmnUh+MpJhYMrJ8XaHi1w='; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' https: data:; connect-src 'self'; object-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'"
},
{ "key": "X-Frame-Options", "value": "DENY" },
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" },
{ "key": "Permissions-Policy", "value": "camera=(), microphone=(), geolocation=()" },
{ "key": "Strict-Transport-Security", "value": "max-age=63072000; includeSubDomains" }
]
}
],
"redirects": [
{
"source": "/",
"has": [
{
"type": "host",
"value": "explorer.gitlawb.com"
}
],
"destination": "https://explorer.twigpine.com/",
"permanent": true
},
{
"source": "/((?!api/|nodes/|node-info|og/|llms\\.txt|skill\\.md|docs/[^/]+\\.md).+)",
"has": [
{
"type": "host",
"value": "explorer.gitlawb.com"
}
],
"destination": "https://explorer.twigpine.com/$1",
"permanent": true
}
],
"rewrites": [
{
"source": "/repos/:owner/:name",
"destination": "/api/repo-page?owner=:owner&name=:name"
},
{
"source": "/og/repos/:owner/:name/:version",
"destination": "/api/og?owner=:owner&name=:name&v=:version"
},
{
"source": "/docs",
"destination": "/api/docs-page"
},
{
"source": "/docs/:slug",
"destination": "/api/docs-page?slug=:slug"
},
{
"source": "/api/v1/:path*",
"destination": "https://node.twigpine.com/api/v1/:path*"
},
{
"source": "/node-info",
"destination": "https://node.twigpine.com/"
},
{
"source": "/nodes/node2/node-info",
"destination": "https://node2.twigpine.com/"
},
{
"source": "/nodes/node2/api/:path*",
"destination": "https://node2.twigpine.com/api/:path*"
},
{
"source": "/nodes/node3/node-info",
"destination": "https://node3.twigpine.com/"
},
{
"source": "/nodes/node3/api/:path*",
"destination": "https://node3.twigpine.com/api/:path*"
},
{
"source": "/nodes/manila/node-info",
"destination": "https://manila.gitlawb.com/"
},
{
"source": "/nodes/manila/api/:path*",
"destination": "https://manila.gitlawb.com/api/:path*"
},
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}