From 6d8e6f8faf54c2910297707db90da8089f567d1a Mon Sep 17 00:00:00 2001 From: Amy Kapernick Date: Mon, 12 Feb 2024 09:27:42 +0800 Subject: [PATCH] fixed issues with env variables --- src/components/parts/fathom/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/parts/fathom/index.tsx b/src/components/parts/fathom/index.tsx index 3431894..bd07692 100644 --- a/src/components/parts/fathom/index.tsx +++ b/src/components/parts/fathom/index.tsx @@ -13,8 +13,8 @@ const TrackPageView = () => useEffect(() => { - load(process.env.NEXT_PUBLIC_FATHOM_SITE, { - includedDomains: [process.env.URL] + load(process.env.NEXT_PUBLIC_FATHOM_SITE ?? "", { + includedDomains: [process.env.URL ?? ""] }) }, []) @@ -30,8 +30,8 @@ export const TrackEvent = ({ name }: { name: EventTypes }) => { useEffect(() => { - load(process.env.NEXT_PUBLIC_FATHOM_SITE, { - includedDomains: [process.env.URL] + load(process.env.NEXT_PUBLIC_FATHOM_SITE ?? "", { + includedDomains: [process.env.URL ?? ""] }) }, [])