diff --git a/frontend/package-lock.json b/frontend/package-lock.json index b83012459..5b8cea0a7 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -44,7 +44,7 @@ "eslint-config-react-app": "^7.0.0", "eslint-plugin-react-hooks": "^4.3.0", "husky": "^7", - "jsdom": "*", + "jsdom": "latest", "lodash": "^4", "moment": "^2.29.1", "prettier": "^2", @@ -58,9 +58,9 @@ "rooks": "^5.7.1", "sass": "^1", "typescript": "^4", - "vite": "*", + "vite": "latest", "vite-plugin-checker": "^0.3.4", - "vitest": "*" + "vitest": "latest" } }, "node_modules/@babel/code-frame": { diff --git a/frontend/src/utilities/env.ts b/frontend/src/utilities/env.ts index f5a0af45f..8efdf07a5 100644 --- a/frontend/src/utilities/env.ts +++ b/frontend/src/utilities/env.ts @@ -1,6 +1,6 @@ -export const isDevEnv = import.meta.env.DEV; -export const isProdEnv = import.meta.env.PROD; -export const isTestEnv = false; +export const isDevEnv = import.meta.env.MODE === "development"; +export const isProdEnv = import.meta.env.MODE === "production"; +export const isTestEnv = import.meta.env.MODE === "test"; export const Environment = { get apiKey(): string | undefined {