Skip to content

Commit 75d322d

Browse files
committed
chore: 디버깅 환경임을 나타내는 전역변수 추가
1 parent dc000ac commit 75d322d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/pyconkr/src/consts/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const IS_DEBUG_ENV = import.meta.env.MODE === "development"

apps/pyconkr/src/main.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import * as Common from "@frontend/common";
1212
import * as Shop from "@frontend/shop";
1313

1414
import { App } from "./App.tsx";
15+
import { IS_DEBUG_ENV } from './consts/index.ts';
1516
import { globalStyles, muiTheme } from "./styles/globalStyles.ts";
1617

1718
const queryClient = new QueryClient({
@@ -35,7 +36,7 @@ const queryClient = new QueryClient({
3536
});
3637

3738
const CommonOptions: Common.Contexts.ContextOptions = {
38-
debug: import.meta.env.MODE === "development",
39+
debug: IS_DEBUG_ENV,
3940
baseUrl: '.',
4041
backendApiDomain: import.meta.env.VITE_PYCONKR_BACKEND_API_DOMAIN,
4142
backendApiTimeout: 10000,

0 commit comments

Comments
 (0)