import nextMDX from '@next/mdx' import remarkGfm from 'remark-gfm' import rehypePrism from '@mapbox/rehype-prism' /** @type {import('next').NextConfig} */ const nextConfig = { pageExtensions: ['js', 'jsx', 'mdx'], reactStrictMode: true, experimental: { scrollRestoration: true, }, output: 'export', images: { unoptimized: true, }, trailingSlash: true, } const withMDX = nextMDX({ extension: /\.mdx?$/, options: { remarkPlugins: [remarkGfm], rehypePlugins: [rehypePrism], }, }) export default withMDX(nextConfig)