Underground-Digital/Workflow-Engine
0
1const { codeInspectorPlugin } = require('code-inspector-plugin')2const withMDX = require('@next/mdx')({3 extension: /\.mdx?$/,4 options: {5 // If you use remark-gfm, you'll need to use next.config.mjs6 // as the package is ESM only7 // https://github.com/remarkjs/remark-gfm#install8 remarkPlugins: [],9 rehypePlugins: [],10 // If you use `MDXProvider`, uncomment the following line.11 // providerImportSource: "@mdx-js/react",12 },13})14 15/** @type {import('next').NextConfig} */16const nextConfig = {17 webpack: (config, { dev, isServer }) => {18 config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' }))19 return config20 },21 productionBrowserSourceMaps: false, // enable browser source map generation during the production build22 // Configure pageExtensions to include md and mdx23 pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],24 experimental: {25 },26 // fix all before production. Now it slow the develop speed.27 eslint: {28 // Warning: This allows production builds to successfully complete even if29 // your project has ESLint errors.30 ignoreDuringBuilds: true,31 dirs: ['app', 'bin', 'config', 'context', 'hooks', 'i18n', 'models', 'service', 'test', 'types', 'utils'],32 },33 typescript: {34 // https://nextjs.org/docs/api-reference/next.config.js/ignoring-typescript-errors35 ignoreBuildErrors: true,36 },37 reactStrictMode: true,38 async redirects() {39 return [40 {41 source: '/',42 destination: '/apps',43 permanent: false,44 },45 ]46 },47 output: 'standalone',48}49 50module.exports = withMDX(nextConfig)51 