From 22ae5d0e374d9ccf7d5f5e3dce4f3df2feb6ab67 Mon Sep 17 00:00:00 2001 From: yassinehaimouch Date: Wed, 25 Jun 2025 01:16:37 +0100 Subject: [PATCH] fix: metadata for og image --- .../{src/app => public}/opengraph-image.jpg | Bin apps/web/src/app/layout.tsx | 29 ++++++++++++++++++ 2 files changed, 29 insertions(+) rename apps/web/{src/app => public}/opengraph-image.jpg (100%) diff --git a/apps/web/src/app/opengraph-image.jpg b/apps/web/public/opengraph-image.jpg similarity index 100% rename from apps/web/src/app/opengraph-image.jpg rename to apps/web/public/opengraph-image.jpg diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index 1cd4b3b..5d33100 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -16,6 +16,35 @@ export const metadata: Metadata = { title: "OpenCut", description: "A simple but powerful video editor that gets the job done. In your browser.", + openGraph: { + title: "OpenCut", + description: + "A simple but powerful video editor that gets the job done. In your browser.", + url: "https://opencut.app", + siteName: "OpenCut", + locale: "en_US", + type: "website", + images: [ + { + url: "https://opencut.app/opengraph-image.jpg", + width: 1200, + height: 630, + alt: "OpenCut", + }, + ], + }, + twitter: { + card: "summary_large_image", + title: "OpenCut", + description: + "A simple but powerful video editor that gets the job done. In your browser.", + creator: "@opencutapp", + images: ["/opengraph-image.jpg"], + }, + robots: { + index: true, + follow: true, + }, }; export default function RootLayout({