Skip to content

Commit a4ef993

Browse files
authored
Merge pull request #1241 from objectstack-ai/claude/fix-build-docs-error
Optimize server Vercel deployment to skip unnecessary site/docs installation
2 parents deea41b + add5b2f commit a4ef993

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

apps/server/scripts/build-vercel.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ set -euo pipefail
1616

1717
echo "[build-vercel] Starting server build..."
1818

19-
# 1. Build the project with pnpm (from monorepo root)
20-
# This builds both server and console
19+
# 1. Build workspace dependencies and console
2120
cd ../..
22-
echo "[build-vercel] Building console with server mode..."
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
24+
echo "[build-vercel] Building console..."
2325
pnpm --filter @object-ui/console run build
2426
cd apps/server
2527

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 --ignore-scripts",
55
"buildCommand": "bash scripts/build-vercel.sh",
66
"build": {
77
"env": {

packages/i18n/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"rootDir": "src",
66
"noEmit": false,
77
"declaration": true,
8-
"composite": true
8+
"composite": true,
9+
"jsx": "react-jsx",
10+
"lib": ["ES2020", "DOM"]
911
},
1012
"include": ["src"],
1113
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"]

0 commit comments

Comments
 (0)