ironGym/webapp/next.config.js

30 lines
807 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
typescript: {
ignoreBuildErrors: true,
},
output: 'standalone',
experimental: {
// 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