cf: do not remove logs in prod env

This commit is contained in:
javayhu 2025-06-17 20:06:20 +08:00
parent da0176ffc5
commit ddd3ee07df

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',
},
images: {