-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
34 lines (31 loc) · 936 Bytes
/
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
import createMDX from "@next/mdx"
import createNextIntlPlugin from "next-intl/plugin"
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
// Configure pageExtensions to include md and mdx
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
// Optionally, add any other Next.js config below
images: {
formats: ["image/webp"]
}
}
const withNextIntl = createNextIntlPlugin("./config/i18n.ts")
const withMDX = createMDX({
options: {
rehypePlugins: [
// rehypeSlug,
// [
// toc,
// {
// headings: ["h2", "h3"], // Only include <h1> and <h2> headings in the TOC
// cssClasses: {
// toc: "page-outline", // Change the CSS class for the TOC
// link: "page-link" // Change the CSS class for links in the TOC
// }
// }
// ]
]
}
})
export default withNextIntl(withMDX(nextConfig))