diff --git a/web/nuxt.config.ts b/web/nuxt.config.ts index 83170261f..3ca92da18 100644 --- a/web/nuxt.config.ts +++ b/web/nuxt.config.ts @@ -80,9 +80,11 @@ export default defineNuxtConfig({ vite: { plugins: [ + // Only remove non-critical console methods when VITE_ALLOW_CONSOLE_LOGS is false + // Keeps console.warn and console.error for debugging purposes !process.env.VITE_ALLOW_CONSOLE_LOGS && removeConsole({ - includes: ['log', 'warn', 'error', 'info', 'debug'], + includes: ['log', 'info', 'debug'], }), ], build: {