/** @type {import('next').NextConfig} */ const nextConfig = { typescript: { ignoreBuildErrors: true, }, output: 'standalone', experimental: { // This is needed for Docker builds outputFileTracingRoot: process.env.NODE_ENV === 'production' ? '../' : undefined, // Disable server-side rendering for API routes during build // to prevent database connection attempts serverComponentsExternalPackages: ['mongoose'], }, // For App Router, use generateStaticParams in your page components // instead of exportPathMap async redirects() { return [ { // we redirect '/' to '/dashboard source: '/', destination: '/dashboard', permanent: true, }, ] }, // Skip type checking during build eslint: { ignoreDuringBuilds: true, }, } module.exports = nextConfig