make dev/dev-debug 구분.
This commit is contained in:
1 parent
0155ee4ee7
commit
5496735e2f
15 files changed
+192
-45
No files matched your search
@@ -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