chore: change getWebsiteUrl default value

This commit is contained in:
jinhojang6 2024-02-09 03:45:46 +09:00
parent 5ef4c49806
commit 3216aeb807
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8

View File

@ -92,7 +92,7 @@ export const parsePostUrl = (url: string): PostLinkData | null => {
export const getWebsiteUrl = () => { export const getWebsiteUrl = () => {
if (typeof window === 'undefined') if (typeof window === 'undefined')
return process.env.NEXT_PUBLIC_SITE_URL || 'https://dev-press.logos.co' return process.env.NEXT_PUBLIC_SITE_URL || 'https://press.logos.co'
const url = new URL(window.location.href) const url = new URL(window.location.href)
return url.origin return url.origin