19 lines
406 B
JavaScript
19 lines
406 B
JavaScript
|
import rehypePrism from '@mapbox/rehype-prism'
|
||
|
import nextMDX from '@next/mdx'
|
||
|
import remarkGfm from 'remark-gfm'
|
||
|
|
||
|
/** @type {import('next').NextConfig} */
|
||
|
const nextConfig = {
|
||
|
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
|
||
|
}
|
||
|
|
||
|
const withMDX = nextMDX({
|
||
|
extension: /\.mdx?$/,
|
||
|
options: {
|
||
|
remarkPlugins: [remarkGfm],
|
||
|
rehypePlugins: [rehypePrism],
|
||
|
},
|
||
|
})
|
||
|
|
||
|
export default withMDX(nextConfig)
|