From a92dfff27d2b5dc1b2e08fdf26d14e0de3403070 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Fri, 28 Nov 2025 05:53:47 +1000 Subject: [PATCH] fix(build): add workspace packages to Next.js transpilePackages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add @tpmjs/db, @tpmjs/types, @tpmjs/env to transpilePackages - Fixes API routes timing out on Vercel due to untranspiled TypeScript imports - Ensures all workspace dependencies are properly bundled for serverless functions Without transpilation, Vercel couldn't properly bundle the @tpmjs/db package, causing API route handlers to hang when trying to import Prisma client. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/web/next.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index b5fe066..481c822 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -1,7 +1,7 @@ import type { NextConfig } from 'next'; const nextConfig: NextConfig = { - transpilePackages: ['@tpmjs/ui', '@tpmjs/utils'], + transpilePackages: ['@tpmjs/ui', '@tpmjs/utils', '@tpmjs/db', '@tpmjs/types', '@tpmjs/env'], reactStrictMode: true, };