/** @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, experimental: { cpus: 28, }, transpilePackages: ['@3rapp/store'], pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'], env: { NEXTAUTH_URL: 'http://localhost:3000', }, webpack: (config, { isServer }) => { config.resolve.alias = { ...config.resolve.alias, 'node:fs': 'fs', 'node:path': 'path', 'node:os': 'os', 'node:crypto': 'crypto', 'node:stream': 'stream', }; if (!isServer) { config.resolve.fallback = { fs: false, path: false, os: false, crypto: false, stream: false, }; } return config; }, }; export default withMDX(nextConfig);