-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnext.config.mjs
More file actions
40 lines (35 loc) · 988 Bytes
/
next.config.mjs
File metadata and controls
40 lines (35 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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,
// },
// compiler: {
// // enable console log in production
// removeConsole: false,
// },
// experimental: {
// webpackMemoryOptimizations: true,
// staticGenerationMaxConcurrency: 2, // try 1–3, default is 8
// staticGenerationMinPagesPerWorker: 1 // keep small, default is 25
// }
}))
// If you have other Next.js configurations, you can pass them as the parameter:
// export default withNextra({ /* other next.js config */ })