Files
NoteNextra-origin/next.config.mjs
Zheyuan Wu 16bc25b0bc update
2025-02-21 22:32:01 -06:00

29 lines
742 B
JavaScript

import nextra from 'nextra'
const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.jsx',
latex: {
renderer: 'katex',
options: {
// suppress warnings from katex for `\\`
// strict: false,
// macros: {
// '\\RR': '\\mathbb{R}'
// }
}
}
})
export default withNextra({
output: 'standalone',
// eslint: {
// ignoreDuringBuilds: true,
// },
experimental: {
// optimize memory usage: https://nextjs.org/docs/app/building-your-application/optimizing/memory-usage
webpackMemoryOptimizations: true,
},})
// If you have other Next.js configurations, you can pass them as the parameter:
// export default withNextra({ /* other next.js config */ })