-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathnext.config.mjs
More file actions
33 lines (30 loc) · 993 Bytes
/
next.config.mjs
File metadata and controls
33 lines (30 loc) · 993 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
/** @type {import('next').NextConfig} */
import createNextIntlPlugin from "next-intl/plugin";
import createMDX from "@next/mdx";
// import remarkFrontmatter from 'remark-frontmatter';
// import remarkMdxFrontmatter from 'remark-mdx-frontmatter';
// const withMDX = require('@next/mdx')()
const withNextIntl = createNextIntlPlugin();
const withMDX = createMDX({
extension: /\.mdx?$/,
options: {
// jsx: true,
// remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter],
// rehypePlugins: [],
},
});
const nextConfig = {
reactStrictMode: false,
images: {
unoptimized: true,
},
typescript: {
// !! 警告 !!
// 允许在生产构建过程中成功完成,即使项目存在类型错误。
// !! 警告 !!
ignoreBuildErrors: true,
},
// Configure `pageExtensions` to include MDX files
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
};
export default withNextIntl(withMDX(nextConfig));