mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
24 lines
567 B
JavaScript
24 lines
567 B
JavaScript
import remarkFrontmatter from 'remark-frontmatter';
|
|
import mdx from '@next/mdx';
|
|
import rehypePrism from '@mapbox/rehype-prism';
|
|
|
|
const withMDX = mdx({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
remarkPlugins: [remarkFrontmatter],
|
|
rehypePlugins: [rehypePrism],
|
|
// providerImportSource: '@mdx-js/react',
|
|
},
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
// experimental: {
|
|
// reactMode: 'concurrent',
|
|
// },
|
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
|
};
|
|
|
|
export default withMDX(nextConfig);
|