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.

fix ts errors

Steven Tey83a74e5bac5e
diff --git a/app/dub.sh/page.tsx b/app/dub.sh/page.tsx
index 8b0611c71d..ee9a177530 100644
--- a/app/dub.sh/page.tsx
+++ b/app/dub.sh/page.tsx
@@ -1,4 +1,3 @@
-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,11 +8,16 @@ import Logos from "#/ui/home/logos";
import Pricing from "#/ui/home/pricing";
import OSS from "#/ui/home/oss";
import Testimonials from "#/ui/home/testimonials";
+import { Metadata } from "next";
-export const metadata = {
+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.";
+const image = "https://dub.sh/_static/thumbnail.png";
+
+export const metadata: Metadata = {
title,
description,
- image,
openGraph: {
title,
description,
diff --git a/app/layout.tsx b/app/layout.tsx
index 4f85944552..c2aae0343c 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,11 +1,16 @@
-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";
+import { Metadata } from "next";
-export const metadata = {
+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.";
+const image = "https://dub.sh/_static/thumbnail.png";
+
+export const metadata: Metadata = {
title,
description,
openGraph: {
diff --git a/lib/constants/index.ts b/lib/constants/index.ts
index 9cd2029607..4b756bdc5f 100644
--- a/lib/constants/index.ts
+++ b/lib/constants/index.ts
@@ -1,8 +1,3 @@
-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",