monorepo/apps/web2/next.config.mjs

24 lines
558 B
JavaScript
Raw Normal View History

2024-09-28 14:58:45 +08:00
/** @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'],
2024-11-04 16:15:49 +08:00
env: {
NEXTAUTH_URL: 'http://localhost:3000',
},
2024-09-28 14:58:45 +08:00
};
export default withMDX(nextConfig);