fix(build): disable Turbopack for Vercel deployment

- 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 <noreply@anthropic.com>
This commit is contained in:
Ajax Davis 2025-11-28 20:46:53 +10:00
parent 748ca4d19c
commit 8281f8fb5b
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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": {