Skip to content

Commit dfbc326

Browse files
committed
fix: update Open Graph image URL to use environment variable for base URL
1 parent 3d50dfe commit dfbc326

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/docs/[[...slug]]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export async function generateMetadata(props: { params: Promise<{ slug?: string[
5555
if (!page) notFound()
5656

5757
const image = {
58-
url: ["/docs-og", ...(params.slug || []), "image.png"].join("/"),
58+
url: [`${process.env.NEXT_PUBLIC_BASE_URL}/docs-og`, ...(params.slug || []), "image.png"].join(
59+
"/",
60+
),
5961
width: 1200,
6062
height: 630,
6163
}

0 commit comments

Comments
 (0)