mdxRs
`@next/mdx`との実験的な使用向け。新しいRustコンパイラを使用してMDXファイルをコンパイルします。
next.config.js
const withMDX = require('@next/mdx')()
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['ts', 'tsx', 'mdx'],
experimental: {
mdxRs: true,
},
}
module.exports = withMDX(nextConfig)
お役に立ちましたか?