From fc7e62d3c18496a25b898ffc8949fa22795e63df Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 12 Mar 2025 00:41:48 +0800 Subject: [PATCH] . --- apps/blogai/next.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/blogai/next.config.js b/apps/blogai/next.config.js index c88c39e..0564b02 100644 --- a/apps/blogai/next.config.js +++ b/apps/blogai/next.config.js @@ -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 }) => {