fix(web): type mdx next config adapter

This commit is contained in:
Naiyuan Qing
2026-05-25 09:39:23 +08:00
parent a95324a762
commit 9feed18c7c

View File

@@ -75,6 +75,6 @@ const nextConfig: NextConfig = {
// dynamic-import `.source/source.config.mjs` under the Turbopack Node evaluator
// (see fumadocs#2658). `dev`/`build` scripts pass `--webpack` to opt out.
// Drop the flag once fumadocs-mdx ships a Turbopack-compatible loader.
const withMDX = createMDX();
const withMDX = createMDX() as (config: NextConfig) => NextConfig;
export default withMDX(nextConfig);