refactor: use getWebsiteUrl util instead of env vars in the SEO component

This commit is contained in:
Hossein Mehrabi 2023-09-18 14:24:19 +03:30
parent 61162e2142
commit 5ce6f4b4a3
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1

View File

@ -20,7 +20,7 @@ type Metadata = {
noIndex?: boolean
}
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL ?? 'https://press.logos.co'
const SITE_URL = getWebsiteUrl()
export default function SEO({
title: _title,