fix(build): add workspace packages to Next.js transpilePackages
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
1a0f75d20b
commit
a92dfff27d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue