This commit is contained in:
Trance-0
2025-11-24 15:44:18 -06:00
parent 7091378d35
commit d62bbff1f0
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
import nextra from 'nextra'
import withBundleAnalyzer from '@next/bundle-analyzer'
const withNextra = nextra({
latex: {
renderer: 'katex',
options: {
// suppress warnings from katex for `\\`
strict: false,
}
},
mdxOptions: {
format: 'detect'
},
contentDirBasePath: '/'
})
const bundleAnalyzer = withBundleAnalyzer({
enabled: process.env.ANALYZE === 'true'
})
export default bundleAnalyzer(withNextra({
// static export start
output: 'export',
images: {
unoptimized: true // mandatory, otherwise won't export
},
// static export end
// eslint: {
// ignoreDuringBuilds: true,
// },
// compiler: {
// // enable console log in production
// removeConsole: false,
// },
// experimental: {
// webpackMemoryOptimizations: true,
// staticGenerationMaxConcurrency: 2, // try 13, default is 8
// staticGenerationMinPagesPerWorker: 1 // keep small, default is 25
// }
}))

View File

@@ -25,4 +25,8 @@ done
echo "Done clearing up resources and compiling for ${KEEP_PAGES}"
echo "modify next.config.js"
cp ./next.config.js ../next.config.js