Repository navigation
Expand file tree
/
Copy pathvercel.json
More file actions
39 lines (39 loc) · 2.76 KB
/
Copy pathvercel.json
File metadata and controls
39 lines (39 loc) · 2.76 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
{
"framework": null,
"installCommand": "npm ci --prefix docs-site",
"buildCommand": "npm --prefix docs-site run build && node docs-site/build-vercel.mjs",
"outputDirectory": "dist",
"trailingSlash": false,
"functions": { "api/turn.mjs": { "maxDuration": 10 } },
"ignoreCommand": "if [ \"$VERCEL_ENV\" = production ]; then exit 1; fi; case \"$VERCEL_GIT_COMMIT_MESSAGE\" in *\"[preview]\"*) exit 1;; esac; exit 0",
"rewrites": [
{ "source": "/room", "destination": "/p2p.html" },
{ "source": "/r/:code", "destination": "/p2p.html" }
],
"redirects": [
{ "source": "/", "has": [{ "type": "host", "value": "swarmllm.ai" }], "destination": "https://pooled.run/", "permanent": true },
{ "source": "/", "has": [{ "type": "host", "value": "www.swarmllm.ai" }], "destination": "https://pooled.run/", "permanent": true },
{ "source": "/:path*", "has": [{ "type": "host", "value": "swarmllm.ai" }], "destination": "https://pooled.run/:path*", "permanent": true },
{ "source": "/:path*", "has": [{ "type": "host", "value": "www.swarmllm.ai" }], "destination": "https://pooled.run/:path*", "permanent": true },
{ "source": "/:path*", "has": [{ "type": "host", "value": "www.pooled.run" }], "destination": "https://pooled.run/:path*", "permanent": true },
{ "source": "/p2p.html", "destination": "/room", "permanent": false }
],
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }
]
},
{ "source": "/(engine|room|harness)/(.*)", "headers": [{ "key": "Cache-Control", "value": "public, max-age=0, must-revalidate" }] },
{ "source": "/room.js", "headers": [{ "key": "Cache-Control", "value": "public, max-age=0, must-revalidate" }] },
{ "source": "/site/fonts/(.*)", "headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }] },
{ "source": "/docs/_astro/(.*)", "headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }] },
{ "source": "/harness/preview-relay.html", "headers": [
{ "key": "Content-Security-Policy", "value": "default-src 'none'; script-src 'unsafe-inline' 'unsafe-eval' data: blob: https://cdn.jsdelivr.net https://cdnjs.cloudflare.com; style-src 'unsafe-inline' data: https://fonts.googleapis.com; font-src data: https://fonts.gstatic.com; img-src data: blob:; media-src data: blob:; connect-src data: blob:; worker-src blob: data:; form-action 'none'; frame-ancestors https://pooled.run https://pooled-dev.vercel.app http://localhost:* http://127.0.0.1:*" },
{ "key": "Referrer-Policy", "value": "no-referrer" },
{ "key": "Cache-Control", "value": "public, max-age=0, must-revalidate" }
] }
]
}