We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1596a7 commit 1ea1a9aCopy full SHA for 1ea1a9a
next.config.mjs
@@ -2,9 +2,14 @@ import { createMDX } from 'fumadocs-mdx/next';
2
3
const withMDX = createMDX();
4
5
-/** @type {import('next').NextConfig} */
6
-const config = {
7
- reactStrictMode: true,
8
-};
+try {
+ /** @type {import('next').NextConfig} */
+ const config = {
+ reactStrictMode: true,
9
+ };
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