Skip to content

fix(proxy): override Vercel build command so it doesn't run turbo#13448

Merged
Bekacru merged 1 commit into
mainfrom
fix/proxy-vercel-build-command
Jun 11, 2026
Merged

fix(proxy): override Vercel build command so it doesn't run turbo#13448
Bekacru merged 1 commit into
mainfrom
fix/proxy-vercel-build-command

Conversation

@Bekacru

@Bekacru Bekacru commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

☕️ Reasoning

The proxy Vercel deployment on main fails during build:

> Detected Turbo. Adjusting default settings...
x Missing tasks in project
->   x Could not find task `build` in project
Error: Command "turbo run build" exited with 1

(from npx vercel inspect dpl_R6Qy53byKXgidYV2zVKzg2KJ7QGL --logs)

Root cause: apps/proxy is intentionally outside the pnpm workspace (pnpm-workspace.yaml covers packages/*, apps/dev/*, docs only) and is installed with pnpm install --ignore-workspace. It has no build step — it ships as Vercel Functions compiled from api/ (api/[auth].ts, api/callback/[auth].ts). Vercel auto-detects Turbo and sets the default build command to turbo run build, but the isolated proxy package has no turbo.json and no build task, so the command errors before the functions are ever built.

Fix: add apps/proxy/vercel.json with an explicit no-op buildCommand, so Vercel skips the turbo default. The api/ functions are still detected and deployed as before.

🧢 Checklist

  • Documentation (n/a)
  • Tests (n/a — deploy config)
  • Ready to be merged — needs a proxy redeploy to confirm green

Note: this is the same proxy project that #13444 fixed for the @auth/core version resolution; this is a separate, build-command failure surfaced after that.

The proxy is intentionally outside the pnpm workspace and has no build
step (it ships as Vercel Functions compiled from api/). Vercel was
auto-detecting Turbo and defaulting the build command to `turbo run
build`, which fails with "Could not find task build in project" because
the isolated proxy package has no turbo.json or build task.

Add a vercel.json with an explicit no-op buildCommand so Vercel skips
turbo; the api/ functions are still detected and deployed.
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auth-docs Ready Ready Preview, Comment Jun 11, 2026 10:25pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
next-auth-docs Ignored Ignored Jun 11, 2026 10:25pm
proxy Ignored Ignored Jun 11, 2026 10:25pm

Request Review

@Bekacru Bekacru merged commit b24abfa into main Jun 11, 2026
12 of 13 checks passed
@Bekacru Bekacru deleted the fix/proxy-vercel-build-command branch June 11, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant