Next.js Loader
Customise the Next.js loader
Plugin Options
Fumadocs MDX offers loaders and a Fumadocs Source API adapter for integration with Fumadocs.
You can configure the plugin by passing options to createMDX
in next.config.mjs
.
Config Path
Customise the config file path.
import { createMDX } from 'fumadocs-mdx/next';
const withMDX = createMDX({
configPath: './my-config.ts',
});
Development Server
When running in development mode (next dev
), a file watcher starts to monitor for changes.
It automatically re-generates the index file in .source
folder, ensuring Next.js hot reload is working properly.
How is this guide?
Last updated on