mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 14:48:08 +00:00
chore: change getWebsiteUrl default value
This commit is contained in:
parent
5ef4c49806
commit
3216aeb807
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user