Skip to content

Commit d744723

Browse files
Copilothotlong
andcommitted
fix: skip tsc and build:plugin in Vercel build to avoid 45-min timeout
The console tsconfig has noEmit:true (type-check only) and build:plugin compiles a server-side plugin not needed for Vercel's static SPA. Inlining just msw:init + vite build saves ~3-7 minutes. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 59ba8dc commit d744723

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/console/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
"installCommand": "cd ../.. && pnpm install --frozen-lockfile",
4-
"buildCommand": "cd ../.. && pnpm turbo run build --filter=@object-ui/console^... && cd apps/console && VITE_BASE_PATH=/ pnpm build:vercel",
4+
"buildCommand": "cd ../.. && pnpm turbo run build --filter=@object-ui/console^... && cd apps/console && pnpm msw:init && VITE_BASE_PATH=/ VITE_USE_MOCK_SERVER=true vite build",
55
"outputDirectory": "dist",
66
"framework": "vite",
77
"rewrites": [

0 commit comments

Comments
 (0)