This commit is contained in:
hailin 2025-03-12 00:41:48 +08:00
parent 3adfdf9344
commit fc7e62d3c1
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ const nextConfig = {
esmExternals: "loose",
},
compiler: {
removeConsole: process.env.VERCEL_ENV === 'production' ? { exclude: ['error'] } : false,
removeConsole: false, // 保留所有模式中的 console.log
//removeConsole: process.env.VERCEL_ENV === 'production' ? { exclude: ['error'] } : false,
emotion: true,
},
webpack: (config, { isServer }) => {