From 68a259d3500a1da0d6fa2f2224fb5f7334680a7f Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Wed, 15 Apr 2026 03:27:58 +0000 Subject: [PATCH 1/6] chore: optimize server Vercel deployment with filtered install Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/cfb3df4a-57c5-4215-8e75-d419129c9c18 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- apps/server/vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/vercel.json b/apps/server/vercel.json index 322a4c83..8f371ed7 100644 --- a/apps/server/vercel.json +++ b/apps/server/vercel.json @@ -1,7 +1,7 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "framework": null, - "installCommand": "cd ../.. && pnpm install --frozen-lockfile", + "installCommand": "cd ../.. && pnpm install --frozen-lockfile --filter @object-ui/server...", "buildCommand": "bash scripts/build-vercel.sh", "build": { "env": { From a46c0a75c29fc94390073e96b975d19ac4adcae3 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Wed, 15 Apr 2026 03:31:55 +0000 Subject: [PATCH 2/6] 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> --- apps/server/scripts/build-vercel.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/scripts/build-vercel.sh b/apps/server/scripts/build-vercel.sh index 60f3beee..d33252da 100755 --- a/apps/server/scripts/build-vercel.sh +++ b/apps/server/scripts/build-vercel.sh @@ -17,8 +17,10 @@ set -euo pipefail echo "[build-vercel] Starting server build..." # 1. Build the project with pnpm (from monorepo root) -# This builds both server and console +# First build workspace dependencies, then console cd ../.. +echo "[build-vercel] Building workspace dependencies..." +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)" echo "[build-vercel] Building console with server mode..." pnpm --filter @object-ui/console run build cd apps/server From 9a71ad13cfe9f1b1601f8d942eecba7b3b2aadae Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Wed, 15 Apr 2026 03:32:17 +0000 Subject: [PATCH 3/6] 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> --- apps/server/scripts/build-vercel.sh | 8 +++----- apps/server/vercel.json | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/server/scripts/build-vercel.sh b/apps/server/scripts/build-vercel.sh index d33252da..d6b5b5b2 100755 --- a/apps/server/scripts/build-vercel.sh +++ b/apps/server/scripts/build-vercel.sh @@ -17,12 +17,10 @@ set -euo pipefail echo "[build-vercel] Starting server build..." # 1. Build the project with pnpm (from monorepo root) -# First build workspace dependencies, then console +# Build workspace packages (excluding site docs) and console cd ../.. -echo "[build-vercel] Building workspace dependencies..." -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)" -echo "[build-vercel] Building console with server mode..." -pnpm --filter @object-ui/console run build +echo "[build-vercel] Building workspace packages..." +pnpm --filter '!@object-ui/site' --filter '@object-ui/*' --filter '@object-ui/console' run build cd apps/server # 2. Bundle API serverless function diff --git a/apps/server/vercel.json b/apps/server/vercel.json index 8f371ed7..322a4c83 100644 --- a/apps/server/vercel.json +++ b/apps/server/vercel.json @@ -1,7 +1,7 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "framework": null, - "installCommand": "cd ../.. && pnpm install --frozen-lockfile --filter @object-ui/server...", + "installCommand": "cd ../.. && pnpm install --frozen-lockfile", "buildCommand": "bash scripts/build-vercel.sh", "build": { "env": { From bfdfc01c37febd4c20d500cb17959cd96eb74781 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Wed, 15 Apr 2026 03:44:07 +0000 Subject: [PATCH 4/6] 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> --- apps/server/scripts/build-vercel.sh | 10 ++++++---- apps/server/vercel.json | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/server/scripts/build-vercel.sh b/apps/server/scripts/build-vercel.sh index d6b5b5b2..958cb893 100755 --- a/apps/server/scripts/build-vercel.sh +++ b/apps/server/scripts/build-vercel.sh @@ -16,11 +16,13 @@ set -euo pipefail echo "[build-vercel] Starting server build..." -# 1. Build the project with pnpm (from monorepo root) -# Build workspace packages (excluding site docs) and console +# 1. Build workspace dependencies and console +# With filtered install, we only have server and console dependencies installed cd ../.. -echo "[build-vercel] Building workspace packages..." -pnpm --filter '!@object-ui/site' --filter '@object-ui/*' --filter '@object-ui/console' run build +echo "[build-vercel] Building workspace dependencies for console..." +pnpm --filter '@object-ui/*' --filter '!@object-ui/console' --filter '!@object-ui/server' --filter '!@object-ui/site' run build || true +echo "[build-vercel] Building console..." +pnpm --filter @object-ui/console run build cd apps/server # 2. Bundle API serverless function diff --git a/apps/server/vercel.json b/apps/server/vercel.json index 322a4c83..e1b87d83 100644 --- a/apps/server/vercel.json +++ b/apps/server/vercel.json @@ -1,7 +1,7 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "framework": null, - "installCommand": "cd ../.. && pnpm install --frozen-lockfile", + "installCommand": "cd ../.. && pnpm install --frozen-lockfile --filter @object-ui/server... --filter @object-ui/console...", "buildCommand": "bash scripts/build-vercel.sh", "build": { "env": { From c125f693a94c0bff3da38183eeae941992bc78fc Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Wed, 15 Apr 2026 03:52:30 +0000 Subject: [PATCH 5/6] 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> --- apps/server/scripts/build-vercel.sh | 6 +++--- apps/server/vercel.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/server/scripts/build-vercel.sh b/apps/server/scripts/build-vercel.sh index 958cb893..68942907 100755 --- a/apps/server/scripts/build-vercel.sh +++ b/apps/server/scripts/build-vercel.sh @@ -17,10 +17,10 @@ set -euo pipefail echo "[build-vercel] Starting server build..." # 1. Build workspace dependencies and console -# With filtered install, we only have server and console dependencies installed cd ../.. -echo "[build-vercel] Building workspace dependencies for console..." -pnpm --filter '@object-ui/*' --filter '!@object-ui/console' --filter '!@object-ui/server' --filter '!@object-ui/site' run build || true +echo "[build-vercel] Building workspace dependencies (excluding site and non-essential packages)..." +# Build only packages needed for console, skip create-plugin and site +pnpm --filter '@object-ui/*' --filter '!@object-ui/create-plugin' --filter '!@object-ui/console' --filter '!@object-ui/server' --filter '!@object-ui/site' run build || true echo "[build-vercel] Building console..." pnpm --filter @object-ui/console run build cd apps/server diff --git a/apps/server/vercel.json b/apps/server/vercel.json index e1b87d83..c918bb3c 100644 --- a/apps/server/vercel.json +++ b/apps/server/vercel.json @@ -1,7 +1,7 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "framework": null, - "installCommand": "cd ../.. && pnpm install --frozen-lockfile --filter @object-ui/server... --filter @object-ui/console...", + "installCommand": "cd ../.. && pnpm install --frozen-lockfile --ignore-scripts", "buildCommand": "bash scripts/build-vercel.sh", "build": { "env": { From add5b2fc51bdd7d2fdc8508019df80a5c1457640 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Wed, 15 Apr 2026 04:02:00 +0000 Subject: [PATCH 6/6] fix: add jsx and lib config to i18n tsconfig for React compilation Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/4ad2b7d5-af2f-41e8-a52b-cde7fee4689c Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- packages/i18n/tsconfig.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/i18n/tsconfig.json b/packages/i18n/tsconfig.json index 2a86bf02..64193fa9 100644 --- a/packages/i18n/tsconfig.json +++ b/packages/i18n/tsconfig.json @@ -5,7 +5,9 @@ "rootDir": "src", "noEmit": false, "declaration": true, - "composite": true + "composite": true, + "jsx": "react-jsx", + "lib": ["ES2020", "DOM"] }, "include": ["src"], "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"]