monorepo/apps/web2/next.config.mjs

21 lines
493 B
JavaScript

/** @type {import('next').NextConfig} */
import createMDX from '@next/mdx';
import rehypePrism from 'rehype-prism-plus';
const withMDX = createMDX({
options: {
rehypePlugins: [[rehypePrism, { showLineNumbers: true }]],
},
});
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: {
cpus: 28,
},
transpilePackages: ['@3rapp/store'],
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
};
export default withMDX(nextConfig);