Update next.config.mjs

This commit is contained in:
NotII
2025-03-23 22:52:56 +00:00
parent 4d8e199ab6
commit d696acb0fc

View File

@@ -24,6 +24,32 @@ const nextConfig = {
}, },
]; ];
}, },
// Build optimization settings for slower CPUs
experimental: {
// Use SWC minification which is faster than Terser
swcMinify: true,
// Cache build artifacts for faster rebuilds
turbotrace: {
logLevel: 'error'
}
},
// Reduce memory usage during builds
onDemandEntries: {
// Period (in ms) where the server will keep pages in the buffer
maxInactiveAge: 15 * 1000,
// Number of pages that should be kept simultaneously without being disposed
pagesBufferLength: 2,
},
// Specify a more efficient build output mode
productionBrowserSourceMaps: false,
// Skip TypeScript checking during production build to speed up
typescript: {
ignoreBuildErrors: true,
},
// Skip ESLint checking during production build to speed up
eslint: {
ignoreDuringBuilds: true,
},
}; };
export default nextConfig; export default nextConfig;