- 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
23 lines
555 B
JavaScript
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;
|