From 3bdb7b1a90fbbbf1be7cbed058575715b72a4d1a Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Sat, 10 Aug 2024 18:51:32 +0500 Subject: [PATCH] fix: opengraph metadata? --- app/layout.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 7f70fa2..8a55419 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -15,16 +15,9 @@ export const metadata = { }, description: "Неофициальное приложение для anixart.tv", openGraph: { - url: process.env.VERCEL_URL - ? `https://${process.env.VERCEL_URL}` - : `http://localhost:${process.env.PORT || 3000}`, images: [ { - url: `${ - process.env.VERCEL_URL - ? "https://" + process.env.VERCEL_URL - : "http://localhost:" + process.env.PORT || 3000 - }/opengraph.png`, // Must be an absolute URL + url: "/opengraph.png", // Must be an absolute URL width: 800, height: 600, },