build: bump NextJS from to 16 with turbopack enable for web production build boost (#27014)

Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
This commit is contained in:
Bowen Liang
2026-01-21 12:53:29 +08:00
committed by GitHub
parent db4fb06c5f
commit 071bbc6d74
8 changed files with 120 additions and 164 deletions

View File

@ -1,3 +1,4 @@
import process from 'node:process'
import withBundleAnalyzerInit from '@next/bundle-analyzer'
import createMDX from '@next/mdx'
import { codeInspectorPlugin } from 'code-inspector-plugin'
@ -48,13 +49,6 @@ const nextConfig = {
search: '',
})),
},
// fix all before production. Now it slow the develop speed.
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
dirs: ['app', 'bin', 'config', 'context', 'hooks', 'i18n', 'models', 'service', 'test', 'types', 'utils'],
},
typescript: {
// https://nextjs.org/docs/api-reference/next.config.js/ignoring-typescript-errors
ignoreBuildErrors: true,