-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvercel.json
More file actions
58 lines (58 loc) · 2.38 KB
/
Copy pathvercel.json
File metadata and controls
58 lines (58 loc) · 2.38 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
{
"framework": "vitepress",
"ignoreCommand": "case \"$VERCEL_GIT_COMMIT_REF\" in *components--brepjs-cad) exit 0 ;; *) exit 1 ;; esac",
"installCommand": "npm install --legacy-peer-deps",
"buildCommand": "npm run build:site",
"outputDirectory": "apps/docs/.vitepress/dist",
"cleanUrls": true,
"trailingSlash": false,
"rewrites": [
{
"source": "/ingest/static/:path(.*)",
"destination": "https://us-assets.i.posthog.com/static/:path"
},
{
"source": "/ingest/array/:path(.*)",
"destination": "https://us-assets.i.posthog.com/array/:path"
},
{ "source": "/ingest/:path(.*)", "destination": "https://us.i.posthog.com/:path" },
{ "source": "/playground/examples", "destination": "/playground/index.html" },
{ "source": "/playground/examples/:path(.*)", "destination": "/playground/index.html" }
],
"headers": [
{
"source": "/fonts/(.*)",
"headers": [
{ "key": "Cross-Origin-Resource-Policy", "value": "same-origin" },
{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }
]
},
{
"source": "/playground(/.*)?",
"headers": [
{ "key": "Cross-Origin-Opener-Policy", "value": "same-origin" },
{ "key": "Cross-Origin-Embedder-Policy", "value": "require-corp" },
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; script-src 'self' blob: 'unsafe-eval' 'wasm-unsafe-eval' https://cdn.jsdelivr.net https://va.vercel-scripts.com https://us-assets.i.posthog.com; worker-src 'self' blob:; connect-src 'self' https://cdn.jsdelivr.net https://us.i.posthog.com https://us-assets.i.posthog.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data: blob:; font-src 'self' data: https://cdn.jsdelivr.net"
}
]
},
{
"source": "/playground",
"headers": [{ "key": "Cache-Control", "value": "public, max-age=0, must-revalidate" }]
},
{
"source": "/playground/index.html",
"headers": [{ "key": "Cache-Control", "value": "public, max-age=0, must-revalidate" }]
},
{
"source": "/playground/assets/(.*)",
"headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }]
},
{
"source": "/playground/wasm/(.*)",
"headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }]
}
]
}