Skip to content

Commit 01c743e

Browse files
test(deployment):vercel
1 parent 55c5248 commit 01c743e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/vercel.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": 2,
3+
"builds": [
4+
{
5+
"src": "backend/server.js",
6+
"use": "@vercel/node"
7+
},
8+
{
9+
"src": "package.json",
10+
"use": "@vercel/static-build",
11+
"config": {
12+
"distDir": "frontend/dist",
13+
"installCommand": "pnpm install",
14+
"buildCommand": "pnpm --filter gopredict-frontend build"
15+
}
16+
}
17+
],
18+
"rewrites": [
19+
{
20+
"source": "/api/(.*)",
21+
"destination": "/backend/server.js"
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)