Skip to content

Commit 9a71ad1

Browse files
Claudehotlong
andauthored
fix: exclude site from build while keeping full install
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 a46c0a7 commit 9a71ad1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

apps/server/scripts/build-vercel.sh

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

1919
# 1. Build the project with pnpm (from monorepo root)
20-
# First build workspace dependencies, then console
20+
# Build workspace packages (excluding site docs) and 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)"
24-
echo "[build-vercel] Building console with server mode..."
25-
pnpm --filter @object-ui/console run build
22+
echo "[build-vercel] Building workspace packages..."
23+
pnpm --filter '!@object-ui/site' --filter '@object-ui/*' --filter '@object-ui/console' run build
2624
cd apps/server
2725

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

0 commit comments

Comments
 (0)