forked from baron/baron-sso
make dev/dev-debug 구분.
This commit is contained in:
8
adminfront/src/lib/debugLog.ts
Normal file
8
adminfront/src/lib/debugLog.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
const CLIENT_DEBUG_LOG_ENABLED = new Set(["1", "true", "yes", "y", "on"]).has(
|
||||
String(import.meta.env.VITE_CLIENT_LOG_DEBUG ?? "").trim().toLowerCase(),
|
||||
);
|
||||
|
||||
export function debugLog(...args: Parameters<typeof console.debug>) {
|
||||
if (!CLIENT_DEBUG_LOG_ENABLED) return;
|
||||
console.debug(...args);
|
||||
}
|
||||
Reference in New Issue
Block a user