fix: fix broken og image urls
This commit is contained in:
parent
9b2c10813a
commit
f665045578
|
@ -14,7 +14,7 @@ export const getOpenGraphImageUrl = ({
|
|||
date?: string | null
|
||||
pagePath?: string | null
|
||||
}) => {
|
||||
const url = new URL(getWebsiteUrl())
|
||||
const url = new URL('/api/og', getWebsiteUrl())
|
||||
const searchParams = url.searchParams
|
||||
|
||||
title && searchParams.set('title', title)
|
||||
|
|
Loading…
Reference in New Issue