From 8281f8fb5bf54bcabb3ad6ce9e25f635d04dd93b Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Fri, 28 Nov 2025 20:46:53 +1000 Subject: [PATCH] fix(build): disable Turbopack for Vercel deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add --webpack flag to build command to use Webpack instead of Turbopack - Add maxDuration export to health route - This should ensure API routes are properly detected and deployed as serverless functions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/web/src/app/api/health/route.ts | 1 + apps/web/vercel.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/api/health/route.ts b/apps/web/src/app/api/health/route.ts index 4a25df5..09fefc6 100644 --- a/apps/web/src/app/api/health/route.ts +++ b/apps/web/src/app/api/health/route.ts @@ -2,6 +2,7 @@ import { NextResponse } from 'next/server'; export const runtime = 'nodejs'; export const dynamic = 'force-dynamic'; +export const maxDuration = 60; /** * GET /api/health diff --git a/apps/web/vercel.json b/apps/web/vercel.json index 4620077..c03e0c3 100644 --- a/apps/web/vercel.json +++ b/apps/web/vercel.json @@ -1,6 +1,6 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", - "buildCommand": "cd ../.. && turbo build --filter=@tpmjs/web", + "buildCommand": "cd ../.. && turbo build --filter=@tpmjs/web -- --webpack", "installCommand": "pnpm install", "functions": { "app/api/**/*.ts": {