This commit is contained in:
Andrew Pimenov 2026-10-07 07:04:51 +03:00 • committed by GitHub
commit e7e327bfee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,11 @@
export const logger = {
info: (...args: any[]) => console.info(...args),
warn: (...args: any[]) => console.warn(...args),
error: (...args: any[]) => console.error(...args),
info: (...args: any[]) => {
if (!import.meta.env.PROD) console.info(...args);
},
warn: (...args: any[]) => {
if (!import.meta.env.PROD) console.warn(...args);
},
error: (...args: any[]) => {
if (!import.meta.env.PROD) console.error(...args);
},
};

1
src/vite-env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="vite/client" />