Skip to content

The open-source CapCut alternative

fix: metadata for og image

yassinehaimouch22ae5d0e374d
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 1cd4b3b9..5d33100d 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({