Files
OverlayScrollbars/website/next-app/next.config.mjs
T
2022-10-17 22:12:54 +02:00

35 lines
691 B
JavaScript

import mdx from '@next/mdx';
import rehypePrettyCode from 'rehype-pretty-code';
import rehypeSlug from 'rehype-slug';
import remarkGfm from 'remark-gfm';
/** @type {import('next').NextConfig} */
const withMDX = mdx({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [
rehypeSlug,
[
rehypePrettyCode,
{
theme: 'solarized-light',
},
],
],
providerImportSource: '@mdx-js/react',
},
});
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
unoptimized: true,
},
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
};
export default withMDX(nextConfig);