File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ set -euo pipefail
1616
1717echo " [build-vercel] Starting server build..."
1818
19- # 1. Build the project with pnpm (from monorepo root)
20- # Build workspace packages (excluding site docs) and console
19+ # 1. Build workspace dependencies and console
20+ # With filtered install, we only have server and console dependencies installed
2121cd ../..
22- echo " [build-vercel] Building workspace packages..."
23- pnpm --filter ' !@object-ui/site' --filter ' @object-ui/*' --filter ' @object-ui/console' run build
22+ echo " [build-vercel] Building workspace dependencies for console..."
23+ pnpm --filter ' @object-ui/*' --filter ' !@object-ui/console' --filter ' !@object-ui/server' --filter ' !@object-ui/site' run build || true
24+ echo " [build-vercel] Building console..."
25+ pnpm --filter @object-ui/console run build
2426cd apps/server
2527
2628# 2. Bundle API serverless function
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://openapi.vercel.sh/vercel.json" ,
33 "framework" : null ,
4- "installCommand" : " cd ../.. && pnpm install --frozen-lockfile" ,
4+ "installCommand" : " cd ../.. && pnpm install --frozen-lockfile --filter @object-ui/server... --filter @object-ui/console... " ,
55 "buildCommand" : " bash scripts/build-vercel.sh" ,
66 "build" : {
77 "env" : {
You can’t perform that action at this time.
0 commit comments