mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-26 07:04:06 +03:00
35 lines
691 B
JavaScript
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);
|