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