This commit is contained in:
hailin 2025-06-16 23:31:45 +08:00
parent 8ff5397e10
commit 9bedaac5d6
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ const nextConfig = {
esmExternals: "loose",
},
compiler: {
removeConsole: yes, // 保留所有模式中的 console.log
removeConsole: true, // 保留所有模式中的 console.log
removeConsole: process.env.NODE_ENV === 'production' ? { exclude: ['error'] } : false, // ✅ 用 NODE_ENV
emotion: true,
},