Skip to content

Commit bfdfc01

Browse files
Claudehotlong
andauthored
fix: use filtered install to completely avoid site postinstall
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/1400131d-b133-4acf-9849-704735b487d8 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 9a71ad1 commit bfdfc01

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

apps/server/scripts/build-vercel.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ set -euo pipefail
1616

1717
echo "[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
2121
cd ../..
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
2426
cd apps/server
2527

2628
# 2. Bundle API serverless function

apps/server/vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": {

0 commit comments

Comments
 (0)