34 lines
735 B
JavaScript
34 lines
735 B
JavaScript
import remarkGfm from 'remark-gfm'
|
|
import createMDX from '@next/mdx'
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
|
|
// Add experimental settings for proper MDX handling
|
|
experimental: {
|
|
serverComponentsExternalPackages: ['next-mdx-remote'],
|
|
mdxRs: true,
|
|
},
|
|
// Disable strict mode to avoid double rendering in development
|
|
reactStrictMode: false,
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
}
|
|
|
|
const withMDX = createMDX({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
remarkPlugins: [remarkGfm],
|
|
rehypePlugins: [],
|
|
},
|
|
})
|
|
|
|
export default withMDX(nextConfig)
|