Introduction/API Reference/next.config.js Options/mdxRsmdxRsFor use with @next/mdx. Compile MDX files using the new Rust compiler. next.config.jsconst withMDX = require('@next/mdx')() /** @type {import('next').NextConfig} */ const nextConfig = { pageExtensions: ['ts', 'tsx', 'mdx'], experimental: { mdxRs: true, }, } module.exports = withMDX(nextConfig)incrementalCacheHandlerPathConfigure the Next.js cache used for storing and revalidating data.onDemandEntriesConfigure how Next.js will dispose and keep in memory pages created in development.