diff --git a/apps/blogai/next.config.js b/apps/blogai/next.config.js index de7c8fb..beef884 100644 --- a/apps/blogai/next.config.js +++ b/apps/blogai/next.config.js @@ -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, },