@@ -5,7 +5,7 @@ import createNextIntlPlugin from 'next-intl/plugin';
55
66import { rehypePlugins , remarkPlugins } from './mdx/plugins.mjs' ;
77import { OPEN_NEXT_CLOUDFLARE } from './next.constants.cloudflare.mjs' ;
8- import { BASE_PATH , ENABLE_STATIC_EXPORT } from './next.constants.mjs' ;
8+ import { BASE_PATH } from './next.constants.mjs' ;
99import { getImagesConfig } from './next.image.config.mjs' ;
1010import { redirects , rewrites } from './next.rewrites.mjs' ;
1111
@@ -43,15 +43,11 @@ const nextConfig = {
4343 './node_modules/@types/node/**/*' ,
4444 ] ,
4545 } ,
46- // On static export builds we want the output directory to be "build"
47- distDir : ENABLE_STATIC_EXPORT ? 'build' : undefined ,
48- // On static export builds we want to enable the export feature
49- output : ENABLE_STATIC_EXPORT ? 'export' : undefined ,
5046 // This configures all the Next.js rewrites, which are used for rewriting internal URLs into other internal Endpoints
5147 // This feature is not supported within static export builds, hence we pass an empty array if static exports are enabled
52- rewrites : ENABLE_STATIC_EXPORT ? undefined : rewrites ,
48+ rewrites,
5349 // This configures all Next.js redirects
54- redirects : ENABLE_STATIC_EXPORT ? undefined : redirects ,
50+ redirects,
5551 // We don't want to run Type Checking on Production Builds
5652 // as we already check it on the CI within each Pull Request
5753 typescript : { ignoreBuildErrors : true } ,
@@ -60,6 +56,7 @@ const nextConfig = {
6056 typedRoutes : true ,
6157 // Experimental Flags
6258 experimental : {
59+ webpackMemoryOptimizations : true ,
6360 // Ensure that server-side code is also minified
6461 serverMinification : true ,
6562 // Use Workers and Threads for webpack compilation
0 commit comments