Skip to content

Commit a46c0a7

Browse files
Claudehotlong
andauthored
fix: build workspace dependencies before console in Vercel deployment
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/827e8cfa-de8f-49a4-8f10-be48bb2709f6 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 68a259d commit a46c0a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/server/scripts/build-vercel.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ set -euo pipefail
1717
echo "[build-vercel] Starting server build..."
1818

1919
# 1. Build the project with pnpm (from monorepo root)
20-
# This builds both server and console
20+
# First build workspace dependencies, then console
2121
cd ../..
22+
echo "[build-vercel] Building workspace dependencies..."
23+
pnpm --filter '@object-ui/*' --filter '!@object-ui/console' --filter '!@object-ui/server' --filter '!@object-ui/site' run build 2>/dev/null || echo "[build-vercel] ⚠ Some workspace builds skipped (expected for non-buildable packages)"
2224
echo "[build-vercel] Building console with server mode..."
2325
pnpm --filter @object-ui/console run build
2426
cd apps/server

0 commit comments

Comments
 (0)