From b1409684dbbf47b9a87946d4dccb3ab6c26dea40 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Thu, 10 Oct 2024 16:19:00 -0700 Subject: [PATCH] refactor: conditionally skip removeConsole plugin based on VITE_ALLOW_CONSOLE_LOGS env --- web/nuxt.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/nuxt.config.ts b/web/nuxt.config.ts index b75947ad5..5f41ac786 100644 --- a/web/nuxt.config.ts +++ b/web/nuxt.config.ts @@ -68,8 +68,8 @@ export default defineNuxtConfig({ // }, vite: { plugins: [ - removeConsole({ - includes: process.env.VITE_ALLOW_CONSOLE_LOGS ? [] : ["log", "warn", "error", "info", "debug"], + !process.env.VITE_ALLOW_CONSOLE_LOGS && removeConsole({ + includes: ["log", "warn", "error", "info", "debug"], }), ], build: {