Skip to content

Commit c125f69

Browse files
Claudehotlong
andauthored
fix: use --ignore-scripts to skip all postinstall hooks including site
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/f97851c8-fdc3-404e-b671-a8c6ad6fc1ae Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent bfdfc01 commit c125f69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/server/scripts/build-vercel.sh

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

1919
# 1. Build workspace dependencies and console
20-
# With filtered install, we only have server and console dependencies installed
2120
cd ../..
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
21+
echo "[build-vercel] Building workspace dependencies (excluding site and non-essential packages)..."
22+
# Build only packages needed for console, skip create-plugin and site
23+
pnpm --filter '@object-ui/*' --filter '!@object-ui/create-plugin' --filter '!@object-ui/console' --filter '!@object-ui/server' --filter '!@object-ui/site' run build || true
2424
echo "[build-vercel] Building console..."
2525
pnpm --filter @object-ui/console run build
2626
cd apps/server

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 --filter @object-ui/server... --filter @object-ui/console...",
4+
"installCommand": "cd ../.. && pnpm install --frozen-lockfile --ignore-scripts",
55
"buildCommand": "bash scripts/build-vercel.sh",
66
"build": {
77
"env": {

0 commit comments

Comments
 (0)