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.

bump utils

Steven Tey20dec3ead251
diff --git a/apps/web/app/[domain]/not-found/page.tsx b/apps/web/app/[domain]/not-found/page.tsx
index 31b42c81f0..1ad903513f 100644
--- a/apps/web/app/[domain]/not-found/page.tsx
+++ b/apps/web/app/[domain]/not-found/page.tsx
@@ -4,7 +4,7 @@ import { constructMetadata } from "@dub/utils";
export const runtime = "edge";
export const metadata = constructMetadata({
- title: "Link Not Found – Dub.co",
+ title: "Link Not Found",
description:
"This link does not exist on Dub.co. Please check the URL and try again.",
image: "https://assets.dub.co/misc/notfoundlink.jpg",
diff --git a/apps/web/app/banned/page.tsx b/apps/web/app/banned/page.tsx
index 5996e4386c..cdb83e140e 100644
--- a/apps/web/app/banned/page.tsx
+++ b/apps/web/app/banned/page.tsx
@@ -5,7 +5,7 @@ import { ShieldBan } from "lucide-react";
export const runtime = "edge";
export const metadata = constructMetadata({
- title: "Banned Link – Dub.co",
+ title: "Banned Link",
description: "This link has been banned for violating our terms of service.",
noIndex: true,
});
diff --git a/apps/web/app/expired/[domain]/page.tsx b/apps/web/app/expired/[domain]/page.tsx
index 69ac5fa965..5bf780d31e 100644
--- a/apps/web/app/expired/[domain]/page.tsx
+++ b/apps/web/app/expired/[domain]/page.tsx
@@ -7,7 +7,7 @@ import { redirect } from "next/navigation";
export const runtime = "edge";
export const metadata = constructMetadata({
- title: "Expired Link – Dub.co",
+ title: "Expired Link",
description:
"This link has expired. Please contact the owner of this link to get a new one.",
noIndex: true,
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 8692c7843a..58f77f7bbb 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub.co",
- "version": "0.1.14",
+ "version": "0.1.15",
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
diff --git a/packages/utils/src/functions/construct-metadata.ts b/packages/utils/src/functions/construct-metadata.ts
index a4b7fb82a9..ab740a7610 100644
--- a/packages/utils/src/functions/construct-metadata.ts
+++ b/packages/utils/src/functions/construct-metadata.ts
@@ -2,8 +2,8 @@ import { Metadata } from "next";
import { HOME_DOMAIN } from "../constants";
export function constructMetadata({
- title = `${process.env.NEXT_PUBLIC_APP_NAME} - Link Management for Modern Marketing Teams`,
- description = `${process.env.NEXT_PUBLIC_APP_NAME} is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,
+ title,
+ description = "Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",
image = "https://assets.dub.co/thumbnail.jpg",
video,
icons = [
@@ -37,7 +37,9 @@ export function constructMetadata({
noIndex?: boolean;
} = {}): Metadata {
return {
- title,
+ title: title
+ ? `${title} | Dub.co`
+ : "Dub.co - Link Management for Modern Marketing Teams",
description,
openGraph: {
title,