| const { codeInspectorPlugin } = require('code-inspector-plugin') |
| const withMDX = require('@next/mdx')({ |
| extension: /\.mdx?$/, |
| options: { |
| |
| |
| |
| remarkPlugins: [], |
| rehypePlugins: [], |
| |
| |
| }, |
| }) |
|
|
| |
| const nextConfig = { |
| webpack: (config, { dev, isServer }) => { |
| config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' })) |
| return config |
| }, |
| productionBrowserSourceMaps: false, |
| |
| pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'], |
| experimental: { |
| }, |
| |
| eslint: { |
| |
| |
| ignoreDuringBuilds: true, |
| dirs: ['app', 'bin', 'config', 'context', 'hooks', 'i18n', 'models', 'service', 'test', 'types', 'utils'], |
| }, |
| typescript: { |
| |
| ignoreBuildErrors: true, |
| }, |
| reactStrictMode: true, |
| async redirects() { |
| return [ |
| { |
| source: '/', |
| destination: '/apps', |
| permanent: false, |
| }, |
| ] |
| }, |
| output: 'standalone', |
| } |
|
|
| module.exports = withMDX(nextConfig) |
|
|