Skip to content

Commit 06c1985

Browse files
committed
fix: metadataBase to use SITE_URL
fixes broken og image paths for share links
1 parent e0d7361 commit 06c1985

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/utils/metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Metadata } from "next"
22
import { getTranslations } from "next-intl/server"
33

4-
import { DEFAULT_OG_IMAGE } from "@/lib/constants"
4+
import { DEFAULT_OG_IMAGE, SITE_URL } from "@/lib/constants"
55

66
import { getFullUrl } from "./url"
77

@@ -65,7 +65,7 @@ export const getMetadata = async ({
6565
return {
6666
title,
6767
description,
68-
metadataBase: new URL(url),
68+
metadataBase: new URL(SITE_URL),
6969
alternates: {
7070
canonical: url,
7171
languages: {

0 commit comments

Comments
 (0)