fix: fix broken og image urls

This commit is contained in:
Hossein Mehrabi 2023-09-18 13:39:42 +03:30
parent 9b2c10813a
commit f665045578
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 1 additions and 1 deletions

View File

@ -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)