-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.mjs
69 lines (62 loc) · 1.63 KB
/
next.config.mjs
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/** @type {import('next').NextConfig} */
// const nextConfig = {
// reactStrictMode: true,
// swcMinify: true,
// experimental: {
// transpilePackages: [
// "react-syntax-highlighter",
// "swagger-client",
// "swagger-ui-react",
// ],
// },
// };
// module.exports = nextConfig;
// const withMDX = require("@next/mdx")({
// extension: /\.mdx?$/,
// options: {
// // If you use remark-gfm, you'll need to use next.config.mjs
// // as the package is ESM only
// // https://github.com/remarkjs/remark-gfm#install
// remarkPlugins: [],
// rehypePlugins: [],
// // If you use `MDXProvider`, uncomment the following line.
// // providerImportSource: "@mdx-js/react",
// },
// });
// module.exports = withMDX({
// // Append the default value with md extensions
// pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
// reactStrictMode: true,
// swcMinify: true,
// experimental: {
// transpilePackages: [
// "react-syntax-highlighter",
// "swagger-client",
// "swagger-ui-react",
// ],
// },
// });
import remarkGfm from "remark-gfm";
import nextMdx from "@next/mdx";
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
swcMinify: true,
experimental: {
transpilePackages: [
"react-syntax-highlighter",
"swagger-client",
"swagger-ui-react",
],
},
output: 'standalone'
};
const withMDX = nextMdx({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
},
});
export default withMDX(nextConfig);