Getting Started
MDXE Configuration Guide

Configuration Guide

MDXE provides several configuration options to customize its behavior.

Plugin Options

interface MDXEPluginOptions {
  mdxOptions?: Record<string, unknown>
  watch?: {
    enabled?: boolean
    ignore?: string[]
  }
}

Next.js Configuration

// next.config.mjs
import { withMDXE } from 'mdxe'
 
export default withMDXE({
  // Next.js config
}, {
  // MDXE options
  mdxOptions: {
    jsx: true,
    // Additional MDX compile options
  },
  watch: {
    enabled: true,
    ignore: ['node_modules/**']
  }
})

CLI Configuration

Create an mdxe.config.js file in your project root:

module.exports = {
  mdxOptions: {
    // MDX compile options
  },
  watch: {
    enabled: true,
    ignore: ['**/node_modules/**']
  }
}

Environment Variables

No environment variables are required for basic usage.

Advanced Configuration

See the API Reference for detailed configuration options.