Initial commit
This commit is contained in:
33
next.config.mjs
Normal file
33
next.config.mjs
Normal file
@ -0,0 +1,33 @@
|
||||
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)
|
Reference in New Issue
Block a user