- 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>
8 lines
225 B
TypeScript
8 lines
225 B
TypeScript
import type { NextConfig } from 'next';
|
|
|
|
const nextConfig: NextConfig = {
|
|
transpilePackages: ['@tpmjs/ui', '@tpmjs/utils', '@tpmjs/db', '@tpmjs/types', '@tpmjs/env'],
|
|
reactStrictMode: true,
|
|
};
|
|
|
|
export default nextConfig;
|