-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvercel.json
More file actions
40 lines (40 loc) 路 1.81 KB
/
Copy pathvercel.json
File metadata and controls
40 lines (40 loc) 路 1.81 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
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"framework": "astro",
"installCommand": "corepack pnpm@10.11.0 -C uhura/web install --frozen-lockfile && corepack pnpm@10.11.0 -C www install --frozen-lockfile",
"devCommand": "ASTRO_DEV_BACKGROUND=0 corepack pnpm@10.11.0 -C www exec astro dev --host 127.0.0.1 --port $PORT",
"buildCommand": "bash scripts/build-www.sh",
"outputDirectory": "www/dist",
"headers": [
{
"source": "/demo/api/editor/state",
"headers": [
{ "key": "Content-Type", "value": "application/json" }
]
},
{
"source": "/demo/api/play/wasm/uhura_wasm_bg.wasm",
"headers": [
{ "key": "Content-Type", "value": "application/wasm" }
]
}
],
"redirects": [
{ "source": "/demo/create/", "destination": "/demo/create", "permanent": true },
{ "source": "/demo/reels/", "destination": "/demo/reels", "permanent": true },
{ "source": "/demo/search/", "destination": "/demo/search", "permanent": true },
{ "source": "/demo/p/:id/", "destination": "/demo/p/:id", "permanent": true },
{ "source": "/demo/profile/:user/", "destination": "/demo/profile/:user", "permanent": true },
{ "source": "/demo/profile/:user/followers/", "destination": "/demo/profile/:user/followers", "permanent": true },
{ "source": "/demo/profile/:user/following/", "destination": "/demo/profile/:user/following", "permanent": true },
{ "source": "/demo/stories/:id/", "destination": "/demo/stories/:id", "permanent": true }
],
"rewrites": [
{ "source": "/demo", "destination": "/demo/index.html" },
{ "source": "/demo/", "destination": "/demo/index.html" },
{
"source": "/demo/((?!api(?:/|$)|assets(?:/|$)|index\\.html$|uhura-static-bundle\\.json$|uhura-web-build\\.json$).*)",
"destination": "/demo/index.html"
}
]
}