From 27023723fe0359ae19d0c384cf5396dc348fa864 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 17 Nov 2022 09:58:00 +0000 Subject: [PATCH] Disable optimizeCss --- next.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 1baf03a..ff858fc 100644 --- a/next.config.js +++ b/next.config.js @@ -10,7 +10,14 @@ const nextConfig = { optimizeFonts: true, poweredByHeader: false, experimental: { - optimizeCss: true, + // Will leave disabled for now as it causes + // cpu usage spikes when loading a page + //optimizeCss: true, + }, + compiler: { + removeConsole: { + exclude: ["error"], + }, }, images: {