Files
NoteNextra-origin/next.config.mjs
Zheyuan Wu dbb201ef37 updates
2025-10-23 13:39:36 -05:00

35 lines
835 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({
output: 'standalone',
eslint: {
ignoreDuringBuilds: true,
},
experimental: {
webpackMemoryOptimizations: true,
staticGenerationMaxConcurrency: 2, // try 13
staticGenerationMinPagesPerWorker: 1 // keep small
}
}))
// If you have other Next.js configurations, you can pass them as the parameter:
// export default withNextra({ /* other next.js config */ })