Commit 73e59960 by liimin

chore: 更新Next.js版本至15.3.2并调整webpack插件配置

更新package.json中的Next.js依赖版本至15.3.2以获取最新功能和修复。同时,在next.config.js中调整webpack插件配置,仅在非开发环境下启用codeInspectorPlugin,以优化生产环境的构建流程。
1 parent 19b77e64
...@@ -15,7 +15,9 @@ const withMDX = require('@next/mdx')({ ...@@ -15,7 +15,9 @@ const withMDX = require('@next/mdx')({
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
webpack: (config, { dev, isServer }) => { webpack: (config, { dev, isServer }) => {
if (!dev) {
config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' })) config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' }))
}
return config return config
}, },
productionBrowserSourceMaps: false, // enable browser source map generation during the production build productionBrowserSourceMaps: false, // enable browser source map generation during the production build
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"mermaid": "11.4.1", "mermaid": "11.4.1",
"mime": "^4.0.4", "mime": "^4.0.4",
"negotiator": "^0.6.4", "negotiator": "^0.6.4",
"next": "15.2.3", "next": "15.3.2",
"next-themes": "^0.4.4", "next-themes": "^0.4.4",
"qrcode.react": "^4.2.0", "qrcode.react": "^4.2.0",
"react": "19.0.0", "react": "19.0.0",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!