cf: do not remove logs in prod env

This commit is contained in:
javayhu 2025-06-17 20:06:20 +08:00
parent 168eae946f
commit fd3c82baaf

View File

@ -12,7 +12,7 @@ const nextConfig: NextConfig = {
// https://nextjs.org/docs/architecture/nextjs-compiler#remove-console
// Remove all console.* calls in production only
compiler: {
removeConsole: process.env.NODE_ENV === 'production',
// removeConsole: process.env.NODE_ENV === 'production',
},
// https://github.com/vercel/next.js/discussions/50177#discussioncomment-6006702