Skip to content

Commit ac6da22

Browse files
committed
MDX Loader Setup
1 parent 9b6bcb8 commit ac6da22

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: next.config.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import type { NextConfig } from "next"
2+
import createMDX from "@next/mdx"
23

34
const nextConfig: NextConfig = {
45
trailingSlash: true,
56
reactStrictMode: true,
7+
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
68
}
79

8-
export default nextConfig
10+
const withMDX = createMDX({
11+
options: {},
12+
})
13+
14+
export default withMDX(nextConfig)

0 commit comments

Comments
 (0)