From e8ce1850e93fe190e9082791ec056765edc55c3d Mon Sep 17 00:00:00 2001 From: MarcoGoC Date: Thu, 13 Jun 2024 07:21:19 -0400 Subject: [PATCH 1/3] fix breadcrumbs --- components/Layout/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index b5add88cd..9a00708e3 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -1,6 +1,7 @@ import { useRouter } from 'next/router' import React, { useEffect, useState } from 'react' import { WebTranslations } from '../../i18n/web' +import { consoleDev } from '../../utils/web/helpers/utils' import { ContextualAlert as Message } from '../Forms/ContextualAlert' import { useTranslation } from '../Hooks' import { CTA } from '../ResultsPage/CTA' @@ -16,7 +17,9 @@ export const Layout: React.VFC<{ const router = useRouter() const hostname = typeof window !== 'undefined' ? window.location.hostname : '' const [prodEnv, setProdEnv] = useState(null) - const isProduction = process.env.NEXT_PUBLIC_ENV === 'production' + const isProduction = process.env.APP_ENV === 'production' + + consoleDev(hostname, isProduction) useEffect(() => { if (isProduction) { From 8fbb3af37c513996914e491c793178704443171e Mon Sep 17 00:00:00 2001 From: MarcoGoC Date: Thu, 13 Jun 2024 07:44:58 -0400 Subject: [PATCH 2/3] fix breadcrumbs --- components/Layout/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index 9a00708e3..1f818dc91 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -19,7 +19,7 @@ export const Layout: React.VFC<{ const [prodEnv, setProdEnv] = useState(null) const isProduction = process.env.APP_ENV === 'production' - consoleDev(hostname, isProduction) + console.log(hostname, isProduction) useEffect(() => { if (isProduction) { From 9987eb7408cb1088a17e1d885fb22c98d877b39d Mon Sep 17 00:00:00 2001 From: MarcoGoC Date: Thu, 13 Jun 2024 07:45:24 -0400 Subject: [PATCH 3/3] fix breadcrumbs --- components/Layout/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index 1f818dc91..30a4b62a8 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -1,7 +1,6 @@ import { useRouter } from 'next/router' import React, { useEffect, useState } from 'react' import { WebTranslations } from '../../i18n/web' -import { consoleDev } from '../../utils/web/helpers/utils' import { ContextualAlert as Message } from '../Forms/ContextualAlert' import { useTranslation } from '../Hooks' import { CTA } from '../ResultsPage/CTA'