本页还没有译文
本页 10 段还没译成한국어,下面显示的是英文原文。pageExtensions
还没翻译译自英文(nextjs.org)本页 10 段都还没译
By default, Next.js accepts files with the following extensions: .tsx, .ts, .jsx, .js. This can be modified to allow other extensions like markdown (.md, .mdx).
next.config.js
const withMDX = require('@next/mdx')()
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
}
module.exports = withMDX(nextConfig)AI 翻译查看英文原文