…eeds
The workbench-nestjs-workflow Vercel project (framework "Other", root
workbench/nest) builds every branch. On stable there is no vercel-build
script, so `nest build` runs but never emits .vercel/output. With no
.vercel/output and no public/ dir, Vercel fails the deploy with
"No Output Directory named public found", turning the nest deployment
check red on every stable PR.
Point outputDirectory at dist so Vercel accepts the build output. This
is isolated to stable: main emits .vercel/output via the nest Vercel
builder (#2988), which takes precedence over outputDirectory regardless.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Peter Wielander <peter.wielander@vercel.com>
Problem
The
workbench-nestjs-workflowVercel project (framework Other, root directoryworkbench/nest) builds every repo branch since its Git integration was reconnected. Onstableit deploys as ERROR, so everystablePR shows a redVercel – workbench-nestjs-workflowcheck.Confirmed via the Vercel API:
stable,changeset-release/stable, andbackport/pr-2963-to-stableall deploy ERROR;mainis READY.Root cause
Stable has no
vercel-buildscript, so Vercel runs the default build (nest buildvia the monorepo Turbo graph). The package builds fine, butnest buildonly emitsdist/— it never produces.vercel/output. With no.vercel/outputand nopublic/directory, the build ends with:maindoesn't hit this because #2988 added the nest Vercel builder +vercel-buildscript, which emits.vercel/output.Fix
Point
outputDirectoryatdistinworkbench/nest/vercel.jsonso Vercel accepts the plainnest buildoutput and the deploy goes green.This is the minimal, stable-scoped fix — it does not backport the experimental nest Vercel builder (which would ship experimental
@workflow/nest/workflowAPIs to the GAlatestnpm channel just to satisfy a CI check). Stable has no nest e2e tests, so a static build ofdist/is sufficient for the deploy to succeed.Isolated to
stable:maincontinues to emit.vercel/output, which takes precedence overoutputDirectoryregardless, so this change is inert if the builder is ever backported later.Testing
stablebranch deployment's build logs (No Output Directory named "public" found).🤖 Generated with Claude Code