From c5cbd89a3709d8265d860ae22391c3e46108a8e7 Mon Sep 17 00:00:00 2001 From: LFades Date: Fri, 18 Feb 2022 04:19:18 -0500 Subject: [PATCH] Updated check --- site/components/common/SEO/SEO.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/site/components/common/SEO/SEO.tsx b/site/components/common/SEO/SEO.tsx index 5096d9c9f..b5e3ad23b 100644 --- a/site/components/common/SEO/SEO.tsx +++ b/site/components/common/SEO/SEO.tsx @@ -2,10 +2,9 @@ import Head from 'next/head' import { FC, Fragment, ReactNode } from 'react' import config from '@config/seo_meta.json' -const storeBaseUrl = - process.env.NEXT_PUBLIC_STORE_URL ?? process.env.NEXT_PUBLIC_VERCEL_URL - ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}` - : null +const storeUrl = + process.env.NEXT_PUBLIC_STORE_URL || process.env.NEXT_PUBLIC_VERCEL_URL +const storeBaseUrl = storeUrl ? `https://${storeUrl}` : null interface OgImage { url?: string