Skip to content

Commit a8a72cc

Browse files
committed
withMDX
1 parent 6001da5 commit a8a72cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

next.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
import { createMDX } from 'fumadocs-mdx/next';
2+
3+
const withMDX = createMDX();
14
let userConfig = undefined
25
try {
36
userConfig = await import('./v0-user-next.config')
47
} catch (e) {
58
// ignore error
69
}
710

11+
812
/** @type {import('next').NextConfig} */
913
const nextConfig = {
1014
eslint: {
@@ -47,4 +51,4 @@ function mergeConfig(nextConfig, userConfig) {
4751
}
4852
}
4953

50-
export default nextConfig
54+
export default withMDX(nextConfig)

0 commit comments

Comments
 (0)