Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Important
Security Advisory: React2Shell & two new vulnerabilities
Find out more

pageExtensions

Last updated October 17, 2025

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
constwithMDX=require('@next/mdx')()/**@type{import('next').NextConfig} */constnextConfig= {  pageExtensions: ['js','jsx','ts','tsx','md','mdx'],}module.exports=withMDX(nextConfig)

Was this helpful?

supported.

[8]ページ先頭

©2009-2025 Movatter.jp