From d696acb0fcca9bf8d248c1520c7576376a65bcd3 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Sun, 23 Mar 2025 22:52:56 +0000 Subject: [PATCH] Update next.config.mjs --- next.config.mjs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 33c8003..a32b99c 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -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;