Files
NoteNextra-origin/distribute/next.config.mjs
Trance-0 1c54bf0b26 backup
2025-11-24 16:11:57 -06:00

43 lines
966 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
// }
}))