Skip to content

Commit

Permalink
fixed issues with env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
amykapernick committed Feb 12, 2024
1 parent 4718879 commit 6d8e6f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/parts/fathom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? ""]
})
}, [])

Expand All @@ -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 ?? ""]
})
}, [])

Expand Down

0 comments on commit 6d8e6f8

Please sign in to comment.