diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index 3f97eb7..0efe764 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -23,7 +23,7 @@ interface LoginProps { export const Login = () => { const captchaRef = useRef(); const { isLoading: userInfoLoading } = useUserInfo(); - const isProdEnvironment = import.meta.env.NODE_ENV === 'prod'; + const isProdEnvironment = import.meta.env.VITE_USER_NODE_ENV === 'production'; const handleLogin = async (values: LoginProps) => { const captchaToken = await captchaRef?.current?.execute(); const params = { ...values, captchaToken }; diff --git a/src/utils/routes.tsx b/src/utils/routes.tsx index 21cb74f..421d09b 100644 --- a/src/utils/routes.tsx +++ b/src/utils/routes.tsx @@ -151,7 +151,7 @@ const routes = [ slug: slugs.placesMap, component: , }, - import.meta.env.NODE_ENV === 'prod' + import.meta.env.VITE_USER_NODE_ENV === 'production' ? {} : { slug: '/profiliai/:id',