Skip to content

Commit 1ea1a9a

Browse files
Update next.config.mjs
1 parent f1596a7 commit 1ea1a9a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

next.config.mjs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ import { createMDX } from 'fumadocs-mdx/next';
22

33
const withMDX = createMDX();
44

5-
/** @type {import('next').NextConfig} */
6-
const config = {
7-
reactStrictMode: true,
8-
};
5+
try {
6+
/** @type {import('next').NextConfig} */
7+
const config = {
8+
reactStrictMode: true,
9+
};
910

10-
export default withMDX(config);
11+
export default withMDX(config);
12+
} catch (error) {
13+
console.error("An error occurred while creating MDX configuration:", error);
14+
throw new Error("MDX configuration failed");
15+
}

0 commit comments

Comments
 (0)