Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

more fixes

Steven Teyf208a5f3c631
diff --git a/app/dub.sh/page.tsx b/app/dub.sh/page.tsx
index 91e323455b..8b0611c71d 100644
--- a/app/dub.sh/page.tsx
+++ b/app/dub.sh/page.tsx
@@ -1,3 +1,4 @@
+import { title, description, image } from "@/lib/constants";
import Background from "@/components/shared/background";
import Demo from "#/ui/home/demo";
import Globe from "#/ui/home/globe";
@@ -9,6 +10,28 @@ import Pricing from "#/ui/home/pricing";
import OSS from "#/ui/home/oss";
import Testimonials from "#/ui/home/testimonials";
+export const metadata = {
+ title,
+ description,
+ image,
+ openGraph: {
+ title,
+ description,
+ images: [
+ {
+ url: image,
+ },
+ ],
+ },
+ twitter: {
+ card: "summary_large_image",
+ title,
+ description,
+ images: [image],
+ creator: "@dubdotsh",
+ },
+};
+
export default function Home() {
return (
<>
diff --git a/app/layout.tsx b/app/layout.tsx
index a7b3a5d709..4f85944552 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,28 +1,27 @@
+import { title, description, image } from "@/lib/constants";
import "@/styles/globals.css";
import { satoshi, inter } from "@/styles/fonts";
import { Analytics } from "@vercel/analytics/react";
import clsx from "clsx";
import { Providers } from "./providers";
-const title = "Dub - Link Management for Modern Marketing Teams";
-const description =
- "Dub is an open-source link management tool for modern marketing teams to create, share, and track short links.";
-
export const metadata = {
- title: {
- default: title,
- },
+ title,
description,
openGraph: {
title,
description,
- images: "/_static/thumbnail.png",
+ images: [
+ {
+ url: image,
+ },
+ ],
},
twitter: {
card: "summary_large_image",
title,
description,
- images: "/_static/thumbnail.png",
+ images: [image],
creator: "@dubdotsh",
},
metadataBase: new URL("https://dub.sh"),
diff --git a/lib/constants/index.ts b/lib/constants/index.ts
index 4b756bdc5f..9cd2029607 100644
--- a/lib/constants/index.ts
+++ b/lib/constants/index.ts
@@ -1,3 +1,8 @@
+export const title = "Dub - Link Management for Modern Marketing Teams";
+export const description =
+ "Dub is an open-source link management tool for modern marketing teams to create, share, and track short links.";
+export const image = "https://dub.sh/_static/thumbnail.png";
+
export const LOCALHOST_GEO_DATA = {
city: "San Francisco",
region: "CA",