Files
public-blog/next.config.ts
2026-06-03 11:25:25 -05:00

26 lines
691 B
TypeScript

import type { NextConfig } from 'next'
import createMDX from '@next/mdx'
const mdxCodeBlockPipeline = new URL('./lib/mdx-hast-visitor.js', import.meta.url).pathname
const nextConfig: NextConfig = {
output: 'export',
trailingSlash: true,
images: { unoptimized: true },
}
const withMDX = createMDX({
options: {
remarkPlugins: ['remark-frontmatter', 'remark-smartypants', 'remark-math', 'remark-gfm'],
rehypePlugins: [
'rehype-slug',
['rehype-external-links', { target: '_blank', rel: ['nofollow', 'noopener', 'noreferrer'] }],
'rehype-autolink-headings',
mdxCodeBlockPipeline,
'rehype-katex',
],
},
})
export default withMDX(nextConfig)