-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
41 lines (38 loc) · 819 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
41 lines (38 loc) · 819 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
41
import nextMdx from '@next/mdx'
import remarkGfm from 'remark-gfm'
import rehypeMdxCodeProps from 'rehype-mdx-code-props'
const withMDX = nextMdx({
extension: /\.mdx?$/,
options: {
remarkPlugins: [
[
remarkGfm,
{
tableCellPadding: true,
singleTilde: true,
}
]
],
rehypePlugins: [
rehypeMdxCodeProps,
],
},
})
/** @type {import('next').NextConfig} */
const nextConfig = {
output: process.env.NODE_ENV === 'prod' ? 'export' : 'standalone',
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
images: {
unoptimized: true,
},
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
i18n: {
locales: [
'en-US',
'zh',
'ja-JP',
],
defaultLocale: 'zh',
}
}
export default withMDX(nextConfig)