30 lines
837 B
JavaScript
30 lines
837 B
JavaScript
/** @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'],
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{ // we redirect '/' to '/dashboard
|
|
source: '/',
|
|
destination: '/dashboard',
|
|
permanent: true,
|
|
},
|
|
]
|
|
},
|
|
// Skip type checking during build
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|