Skip to content

mdxRs

用于 @next/mdx 的实验性使用。使用新的 Rust 编译器编译 MDX 文件。

¥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)

Next.js v15.2 中文网 - 粤ICP备13048890号