Skip to content

Commit 1309899

Browse files
committed
add
1 parent 71ff9a3 commit 1309899

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

next.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,16 @@ const nextConfig = {
1919
},
2020
output: 'export',
2121
};
22+
let config;
23+
try {
24+
config = withMDX(nextConfig);
25+
} catch (err) {
26+
// Ensure thrown error is an instance of Error
27+
if (!(err instanceof Error)) {
28+
throw new Error(String(err));
29+
}
30+
throw err;
31+
}
32+
module.exports = config;
2233

2334
module.exports = withMDX(nextConfig);

0 commit comments

Comments
 (0)