Skip to content

Commit acf9d17

Browse files
authored
Merge pull request #284 from Nexters/fix/v-console-only-production
fix: vConsole 프로덕션 페이즈에서만 보이도록 수정
2 parents 43112ef + cd8518b commit acf9d17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/admin/src/utils/vConsole.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { checkIsWebView } from '@boolti/bridge';
22
import type vConsole from 'vconsole';
3+
import { IS_PRODUCTION_PHASE } from '~/constants/phase';
34

45
let vConsoleObject: vConsole | undefined;
56

67
export const initVConsole = async () => {
7-
if (checkIsWebView()) {
8+
if (checkIsWebView() && IS_PRODUCTION_PHASE) {
89
const { default: vConsole } = await import('vconsole');
910
vConsoleObject = new vConsole({});
1011
}

0 commit comments

Comments
 (0)