From cc39b9cf9963eefeb702ac87571419180537b6fa Mon Sep 17 00:00:00 2001 From: Jack Zhuang <50353452+hotlong@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:12:46 +0800 Subject: [PATCH] fix(site): build the docs deploy with the command CI already runs, so the production build stops failing (objectui#12178) Every production build of the Vercel project `objectui` (Root Directory `apps/site`) has failed since 2026-09-06 with `Module not found: Can't resolve '@object-ui/example-schema-catalog'`, so objectui.org has been frozen since then. The project's build command only exists in the Vercel dashboard: `pnpm --filter '../../packages/*' -r build && pnpm build`. Its filter selects `packages/*` only and never builds `examples/schema-catalog`, whose `exports` resolve only into `dist/`. Until #7986 that gap was covered by `apps/site`'s `prebuild` hook (`pnpm --filter @object-ui/example-schema-catalog build`). #7986 removed the hook on purpose so that turbo's `^build` is the only source of build order, and moved every in-repo path to the turbo form, including the root `site:build` script. The dashboard command lives outside the repo, so it was not updated. The deployment for #7986's commit is the first ERROR, and the one for the commit before it is the last READY. CI's `Build Docs` stayed green the whole time because it runs `pnpm turbo run build --filter='@object-ui/site'`, which builds the site's dependency closure, schema catalog included. This adds `apps/site/vercel.json`, which Vercel reads from the Root Directory and which overrides the dashboard values. Its `buildCommand` is that same turbo command, run from the repo root, and its `installCommand` keeps the dashboard's current `pnpm i`. With that, the deploy's build is in the repo and is the build CI validates. Refs: objectui#12178 Co-Authored-By: Claude Opus 5.5 --- apps/site/vercel.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 apps/site/vercel.json diff --git a/apps/site/vercel.json b/apps/site/vercel.json new file mode 100644 index 0000000000..c52dc484c8 --- /dev/null +++ b/apps/site/vercel.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "installCommand": "pnpm i", + "buildCommand": "cd ../.. && pnpm turbo run build --filter=@object-ui/site" +}