Back to Next Js

mdxRs

docs/01-app/03-api-reference/05-config/01-next-config-js/mdxRs.mdx

16.2.5345 B
Original Source

For experimental use with @next/mdx. Compiles MDX files using the new Rust compiler.

js
const withMDX = require('@next/mdx')()

/** @type {import('next').NextConfig} */
const nextConfig = {
  pageExtensions: ['ts', 'tsx', 'mdx'],
  experimental: {
    mdxRs: true,
  },
}

module.exports = withMDX(nextConfig)