Files
public-blog/next.config.ts

29 lines
737 B
TypeScript

import type { NextConfig } from 'next'
import createMDX from '@next/mdx'
const nextConfig: NextConfig = {
output: 'export',
trailingSlash: true,
images: { unoptimized: true },
}
const withMDX = createMDX({
options: {
remarkPlugins: ['remark-smartypants', 'remark-math', 'remark-gfm'],
rehypePlugins: [
'rehype-slug',
['rehype-external-links', { target: '_blank', rel: ['nofollow', 'noopener', 'noreferrer'] }],
'rehype-autolink-headings',
['rehype-pretty-code', {
theme: { light: 'github-light', dark: 'github-dark-dimmed' },
keepBackground: false,
lineNumbers: true,
grid: true,
}],
'rehype-katex',
],
},
})
export default withMDX(nextConfig)