From cc6c8243ed75d6eb52e66fff81fd815b36495319 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Fri, 28 Nov 2025 05:58:10 +1000 Subject: [PATCH] fix(vercel): configure Turborepo monorepo build for apps/web MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add vercel.json to apps/web with Turborepo build command - Configure build to use turbo build --filter=@tpmjs/web - Ensures Vercel properly detects and builds Next.js app in monorepo structure - Fixes API routes timing out due to incorrect project root detection This resolves the issue where Vercel wasn't detecting the Next.js app inside apps/web/, causing API routes to never be built as serverless functions. Note: You must also set Root Directory to "apps/web" in Vercel dashboard: Project Settings > General > Root Directory 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/web/vercel.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 apps/web/vercel.json diff --git a/apps/web/vercel.json b/apps/web/vercel.json new file mode 100644 index 0000000..5908f4f --- /dev/null +++ b/apps/web/vercel.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "buildCommand": "cd ../.. && turbo build --filter=@tpmjs/web", + "installCommand": "pnpm install" +}