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)
役に立ちましたか?