/** @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;