diff --git a/next.config.js b/next.config.js index 525b6f3ab..f75d8061b 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,13 @@ const IS_DEV = process.env.NODE_ENV === "development"; +const PROD_OPTIMIZATIONS = IS_DEV + ? {} + : { + experimental: { + cpus: 1, + }, + }; + // IMPORTANT: Keep this in sync with netlify.toml // prettier-ignore const CSP_HEADER = [ @@ -75,6 +83,8 @@ const CSP_HEADER = [ module.exports = { output: "export", + ...PROD_OPTIMIZATIONS, + webpack: (configuration) => { // Don't try to polyfill the fs module. configuration.resolve.fallback = { fs: false };