mad-lawsuit/frontend/next.config.js
TheMaddax 6c9faf7df0 Upgrade packages: React 19, Next.js 16, Prisma 7, Express 5
- Frontend: React 18→19, Next.js 15→16, major package updates
- Backend: Prisma 5→7 with adapter pattern, Express 4→5
- Added Prisma 7 config (prisma.config.ts) and PostgreSQL adapter
- Updated Next.js config for Turbopack compatibility
- All builds passing successfully
2025-12-14 16:40:28 -07:00

23 lines
555 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Empty turbopack config to silence Next.js 16 warning
turbopack: {},
// Keep webpack config for backward compatibility
webpack: (config) => {
// Handle PDF.js worker
config.resolve.alias.canvas = false;
config.resolve.alias.encoding = false;
return config;
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'http://backend:3001/api/:path*'
}
];
},
};
module.exports = nextConfig;