summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authormuhammed sinan <muhammedsinan7749@gmail.com>2025-06-25 20:22:17 +0530
committermuhammed sinan <muhammedsinan7749@gmail.com>2025-06-25 20:22:17 +0530
commitcca25a61039b1d09c9ffaee2f42046c09ab72c3b (patch)
treeba1cc6a48ff85eb99f6aa65fc557046698769f66 /apps
parent2e5b623d90ba250dd5c50b623bd8044fd6d62e2a (diff)
downloadopencut-cca25a61039b1d09c9ffaee2f42046c09ab72c3b.tar.gz
Reduce code duplication by extracting common metadata values.
Diffstat (limited to 'apps')
-rw-r--r--apps/web/src/app/metadata.ts28
1 files changed, 15 insertions, 13 deletions
diff --git a/apps/web/src/app/metadata.ts b/apps/web/src/app/metadata.ts
index fe674381..4e387014 100644
--- a/apps/web/src/app/metadata.ts
+++ b/apps/web/src/app/metadata.ts
@@ -1,20 +1,23 @@
import { Metadata } from "next";
+const title = "OpenCut";
+const description = "A simple but powerful video editor that gets the job done. In your browser.";
+const openGraphImageUrl = "https://opencut.app/opengraph-image.jpg";
+const twitterImageUrl = "/opengraph-image.jpg";
+
export const baseMetaData: Metadata = {
- title: "OpenCut",
- description:
- "A simple but powerful video editor that gets the job done. In your browser.",
+ title: title,
+ description: description,
openGraph: {
- title: "OpenCut",
- description:
- "A simple but powerful video editor that gets the job done. In your browser.",
+ title: title,
+ description: description,
url: "https://opencut.app",
siteName: "OpenCut",
locale: "en_US",
type: "website",
images: [
{
- url: "https://opencut.app/opengraph-image.jpg",
+ url: openGraphImageUrl,
width: 1200,
height: 630,
alt: "OpenCut",
@@ -23,11 +26,10 @@ export const baseMetaData: Metadata = {
},
twitter: {
card: "summary_large_image",
- title: "OpenCut",
- description:
- "A simple but powerful video editor that gets the job done. In your browser.",
+ title: title,
+ description: description,
creator: "@opencutapp",
- images: ["/opengraph-image.jpg"],
+ images: [twitterImageUrl],
},
robots: {
index: true,
@@ -55,10 +57,10 @@ export const baseMetaData: Metadata = {
},
appleWebApp: {
capable: true,
- title: "OpenCut",
+ title: title,
},
manifest: "/manifest.json",
other: {
"msapplication-config": "/browserconfig.xml"
}
-}; \ No newline at end of file
+};