From f6650455782c0e1eb2755f9f1865a8111795b219 Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Mon, 18 Sep 2023 13:39:42 +0330 Subject: [PATCH] fix: fix broken og image urls --- src/utils/og.utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/og.utils.ts b/src/utils/og.utils.ts index e74f09e..e4a11f4 100644 --- a/src/utils/og.utils.ts +++ b/src/utils/og.utils.ts @@ -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)