mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-22 06:08:15 +00:00
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…
x
Reference in New Issue
Block a user