mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
32 lines
864 B
JavaScript
32 lines
864 B
JavaScript
import remarkFrontmatter from 'remark-frontmatter';
|
|
import mdx from '@next/mdx';
|
|
import rehypePrism from '@mapbox/rehype-prism';
|
|
import composePlugins from 'next-compose-plugins';
|
|
import remarkGfm from 'remark-gfm';
|
|
import rehypeSlug from 'rehype-slug';
|
|
|
|
const composedConfig = composePlugins([
|
|
mdx({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
remarkPlugins: [remarkFrontmatter, remarkGfm],
|
|
rehypePlugins: [rehypePrism, rehypeSlug],
|
|
providerImportSource: '@mdx-js/react',
|
|
},
|
|
}),
|
|
/** @type {import('next').NextConfig} */
|
|
{
|
|
reactStrictMode: true,
|
|
// experimental: {
|
|
// reactMode: 'concurrent',
|
|
// },
|
|
experimental: {
|
|
outputStandalone: true,
|
|
},
|
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
|
images: { domains: ['avatars.githubusercontent.com'] },
|
|
},
|
|
]);
|
|
|
|
export default composedConfig;
|