use @next/mdx

This commit is contained in:
Thomas Ruoff
2024-03-13 23:13:21 +01:00
parent 573b06d72d
commit 0486b99b3e
13 changed files with 2927 additions and 903 deletions

21
next.config.mjs Normal file
View File

@@ -0,0 +1,21 @@
import { withAxiom } from 'next-axiom'
import createMDX from '@next/mdx'
/** @type {import('next').NextConfig} */
const nextConfig = {
swcMinify: true,
// Configure `pageExtensions`` to include MDX files
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
// Optionally, add any other Next.js config below
}
const withMDX = createMDX({
// Add markdown plugins here, as desired
options: {
remarkPlugins: [],
rehypePlugins: [],
},
})
// Merge MDX config with Next.js config
export default withMDX(nextConfig)