The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add support for custom app name
Steven Tey07eee048616e
diff --git a/apps/web/.env.example b/apps/web/.env.exampleindex de20248141..c264386724 100644--- a/apps/web/.env.example+++ b/apps/web/.env.example@@ -2,6 +2,7 @@###### REQUIRED ENV VARS #####################################+NEXT_PUBLIC_APP_NAME=Dub.coNEXT_PUBLIC_APP_DOMAIN=dub.coNEXT_PUBLIC_APP_SHORT_DOMAIN=dub.shdiff --git a/apps/web/app/[domain]/page.tsx b/apps/web/app/[domain]/page.tsxindex bc07c1bb69..094f978d44 100644--- a/apps/web/app/[domain]/page.tsx+++ b/apps/web/app/[domain]/page.tsx@@ -8,8 +8,12 @@ export async function generateMetadata({}: {params: { domain: string };}) {- const title = `${params.domain.toUpperCase()} - A Dub.co Custom Domain`;- const description = `${params.domain.toUpperCase()} is a custom domain on Dub - an open-source link management tool for modern marketing teams to create, share, and track short links.`;+ const title = `${params.domain.toUpperCase()} - A ${+ process.env.NEXT_PUBLIC_APP_NAME+ } Custom Domain`;+ const description = `${params.domain.toUpperCase()} is a custom domain on ${+ process.env.NEXT_PUBLIC_APP_NAME+ } - an open-source link management tool for modern marketing teams to create, share, and track short links.`;return constructMetadata({title,diff --git a/apps/web/app/[domain]/placeholder.tsx b/apps/web/app/[domain]/placeholder.tsxindex 85c4f4f4f1..814d3ba03b 100644--- a/apps/web/app/[domain]/placeholder.tsx+++ b/apps/web/app/[domain]/placeholder.tsx@@ -53,7 +53,7 @@ export default function PlaceholderContent() {className="font-display text-4xl font-bold text-gray-800 transition-colors sm:text-5xl"variants={STAGGER_CHILD_VARIANTS}>- Welcome to Dub+ Welcome to {process.env.NEXT_PUBLIC_APP_NAME}</motion.h1><motion.pclassName="max-w-xl text-gray-600 transition-colors sm:text-lg"@@ -70,10 +70,9 @@ export default function PlaceholderContent() {})}>- Dub+ {process.env.NEXT_PUBLIC_APP_NAME}</a>{" "}- - a link management tool for modern marketing teams to create, share,- and track short links.+ - the link management infrastructure for modern marketing teams.</motion.p><motion.avariants={STAGGER_CHILD_VARIANTS}diff --git a/apps/web/app/[domain]/stats/[key]/page.tsx b/apps/web/app/[domain]/stats/[key]/page.tsxindex c94a3c30a4..f80c6e02e7 100644--- a/apps/web/app/[domain]/stats/[key]/page.tsx+++ b/apps/web/app/[domain]/stats/[key]/page.tsx@@ -19,7 +19,7 @@ export async function generateMetadata({}return constructMetadata({- title: `Stats for ${params.domain}/${params.key} – Dub`,+ title: `Stats for ${params.domain}/${params.key} – ${process.env.NEXT_PUBLIC_APP_NAME}`,description: `Stats page for ${params.domain}/${params.key}${data?.url ? `, which redirects to ${data.url}` : ""}.`,diff --git a/apps/web/app/api/cron/usage/utils.ts b/apps/web/app/api/cron/usage/utils.tsindex 8a52b3882b..b0bec915f1 100644--- a/apps/web/app/api/cron/usage/utils.ts+++ b/apps/web/app/api/cron/usage/utils.ts@@ -146,10 +146,12 @@ export const updateUsage = async () => {emails.map((email) => {limiter.schedule(() =>sendEmail({- subject: `Your 30-day Dub summary for ${project.name}`,+ subject: `Your 30-day ${process.env.NEXT_PUBLIC_APP_NAME} summary for ${project.name}`,email,react: ClicksSummary({email,+ appName: process.env.NEXT_PUBLIC_APP_NAME as string,+ appDomain: process.env.NEXT_PUBLIC_APP_DOMAIN as string,projectName: project.name,projectSlug: project.slug,totalClicks: project.usage,@@ -201,7 +203,7 @@ const sendUsageLimitEmail = async (emails.map((email) => {limiter.schedule(() =>sendEmail({- subject: `You have exceeded your Dub usage limit`,+ subject: `You have exceeded your ${process.env.NEXT_PUBLIC_APP_NAME} usage limit`,email,react: UsageExceeded({email,diff --git a/apps/web/app/app.dub.co/(auth)/auth/saml/page.tsx b/apps/web/app/app.dub.co/(auth)/auth/saml/page.tsxindex ea0ca5c2c2..ee1e3d5435 100644--- a/apps/web/app/app.dub.co/(auth)/auth/saml/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/auth/saml/page.tsx@@ -11,7 +11,7 @@ export default function SAMLPage() {<div className="flex h-screen flex-col items-center justify-center space-y-6 text-center"><h1 className="font-display text-4xl font-bold">Authenticating</h1><p className="text-lg text-gray-600">- Dub is verifying your identity.+ {process.env.NEXT_PUBLIC_APP_NAME} is verifying your identity.<br /> Please wait...</p><LoadingSpinner className="h-7 w-7" />diff --git a/apps/web/app/app.dub.co/(auth)/login/form.tsx b/apps/web/app/app.dub.co/(auth)/login/form.tsxindex ac2bae252f..a97b5bbaed 100644--- a/apps/web/app/app.dub.co/(auth)/login/form.tsx+++ b/apps/web/app/app.dub.co/(auth)/login/form.tsx@@ -140,7 +140,7 @@ export default function LoginForm() {Project Slug</h2><InfoTooltip- content={`This is your project's unique identifier on Dub. E.g. app.dub.co/acme is "acme".`}+ content={`This is your project's unique identifier on ${process.env.NEXT_PUBLIC_APP_NAME}. E.g. app.dub.co/acme is "acme".`}/></div><inputdiff --git a/apps/web/app/app.dub.co/(auth)/login/page.tsx b/apps/web/app/app.dub.co/(auth)/login/page.tsxindex ba6a36af01..afab460334 100644--- a/apps/web/app/app.dub.co/(auth)/login/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/login/page.tsx@@ -4,7 +4,7 @@ import { Suspense } from "react";import LoginForm from "./form";export const metadata = constructMetadata({- title: "Sign in to Dub",+ title: `Sign in to ${process.env.NEXT_PUBLIC_APP_NAME}`,});export default function LoginPage() {@@ -14,7 +14,9 @@ export default function LoginPage() {<a href={HOME_DOMAIN}><Logo className="h-10 w-10" /></a>- <h3 className="text-xl font-semibold">Sign in to Dub</h3>+ <h3 className="text-xl font-semibold">+ Sign in to {process.env.NEXT_PUBLIC_APP_NAME}+ </h3><p className="text-sm text-gray-500">Start creating short links with superpowers.</p>diff --git a/apps/web/app/app.dub.co/(auth)/register/form.tsx b/apps/web/app/app.dub.co/(auth)/register/form.tsxindex bbe7f24093..94b338d08e 100644--- a/apps/web/app/app.dub.co/(auth)/register/form.tsx+++ b/apps/web/app/app.dub.co/(auth)/register/form.tsx@@ -57,7 +57,7 @@ export default function RegisterForm() {Project Slug</h2><InfoTooltip- content={`This is your project's unique identifier on Dub. E.g. app.dub.co/acme is "acme".`}+ content={`This is your project's unique identifier on ${process.env.NEXT_PUBLIC_APP_NAME}. E.g. app.dub.co/acme is "acme".`}/></div><inputdiff --git a/apps/web/app/app.dub.co/(auth)/register/page.tsx b/apps/web/app/app.dub.co/(auth)/register/page.tsxindex df644c321b..68fa49e6cd 100644--- a/apps/web/app/app.dub.co/(auth)/register/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/register/page.tsx@@ -4,7 +4,7 @@ import { Suspense } from "react";import RegisterForm from "./form";export const metadata = constructMetadata({- title: "Sign up to Dub",+ title: `Create your ${process.env.NEXT_PUBLIC_APP_NAME} account`,});export default function RegisterPage() {@@ -14,7 +14,9 @@ export default function RegisterPage() {<a href={HOME_DOMAIN}><Logo className="h-10 w-10" /></a>- <h3 className="text-xl font-semibold">Create your Dub account</h3>+ <h3 className="text-xl font-semibold">+ Create your {process.env.NEXT_PUBLIC_APP_NAME} account+ </h3><p className="text-sm text-gray-500">Get started for free. No credit card required.</p>diff --git a/apps/web/app/app.dub.co/(auth)/welcome/page.tsx b/apps/web/app/app.dub.co/(auth)/welcome/page.tsxindex 5aad7058fa..cef0892b14 100644--- a/apps/web/app/app.dub.co/(auth)/welcome/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/welcome/page.tsx@@ -2,7 +2,7 @@ import { constructMetadata } from "@dub/utils";import WelcomePageClient from "./page-client";export const metadata = constructMetadata({- title: "Welcome to Dub",+ title: `Welcome to ${process.env.NEXT_PUBLIC_APP_NAME}`,});export default function WelcomePage() {diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/page-client.tsxindex a92fb96b12..685cd6c7c3 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/page-client.tsx@@ -16,7 +16,7 @@ export default function ProjectSettingsClient() {<><Formtitle="Project Name"- description="This is the name of your project on Dub."+ description={`This is the name of your project on ${process.env.NEXT_PUBLIC_APP_NAME}.`}inputData={{name: "name",defaultValue: name,@@ -53,7 +53,7 @@ export default function ProjectSettingsClient() {/><Formtitle="Project Slug"- description="This is your project's unique slug on Dub."+ description={`This is your project's unique slug on ${process.env.NEXT_PUBLIC_APP_NAME}.`}inputData={{name: "slug",defaultValue: slug,diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/security/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/security/page-client.tsxindex 6e219c13a2..ff824c479b 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/security/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/security/page-client.tsx@@ -80,7 +80,7 @@ const SAMLSection = ({<h2 className="text-xl font-medium">SAML Single Sign-On</h2><p className="text-sm text-gray-500">Set up SAML Single Sign-On (SSO) to allow your team to sign in to- Dub with your identity provider.+ {process.env.NEXT_PUBLIC_APP_NAME} with your identity provider.</p></div>diff --git a/apps/web/app/app.dub.co/(dashboard)/settings/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/settings/page-client.tsxindex 428fcb7864..616d106fc3 100644--- a/apps/web/app/app.dub.co/(dashboard)/settings/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/settings/page-client.tsx@@ -13,7 +13,7 @@ export default function SettingsPageClient() {<><Formtitle="Your Name"- description="This will be your display name on Dub."+ description={`This will be your display name on ${process.env.NEXT_PUBLIC_APP_NAME}.`}inputData={{name: "name",defaultValue:@@ -42,7 +42,7 @@ export default function SettingsPageClient() {/><Formtitle="Your Email"- description="This will be the email you use to log in to Dub and receive notifications."+ description={`This will be the email you use to log in to ${process.env.NEXT_PUBLIC_APP_NAME} and receive notifications.`}inputData={{name: "email",defaultValue: session?.user?.email || undefined,diff --git a/apps/web/emails/clicks-summary.tsx b/apps/web/emails/clicks-summary.tsxindex 76d191f914..ccb1c898bf 100644--- a/apps/web/emails/clicks-summary.tsx+++ b/apps/web/emails/clicks-summary.tsx@@ -20,6 +20,8 @@ import Footer from "./components/footer";export default function ClicksSummary({email = "[email protected]",+ appName = "Dub.co",+ appDomain = "dub.co",projectName = "Acme",projectSlug = "acme",totalClicks = 63689,@@ -48,6 +50,8 @@ export default function ClicksSummary({],}: {email: string;+ appName: string;+ appDomain: string;projectName: string;projectSlug: string;totalClicks: number;@@ -60,7 +64,9 @@ export default function ClicksSummary({return (<Html><Head />- <Preview>Your 30-day Dub summary for {projectName}</Preview>+ <Preview>+ Your 30-day {appName} summary for {projectName}+ </Preview><Tailwind><Body className="mx-auto my-auto bg-white font-sans"><Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">@@ -69,15 +75,15 @@ export default function ClicksSummary({src={DUB_LOGO}width="40"height="40"- alt="Dub"+ alt={appName}className="mx-auto my-0"/></Section><Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">- Your 30-day Dub summary for {projectName}+ Your 30-day {appName} summary for {projectName}</Heading><Text className="text-sm leading-6 text-black">- In the last 30 days, your Dub project,{" "}+ In the last 30 days, your {appName} project,{" "}<strong>{projectName}</strong> received{" "}<strong>{nFormatter(totalClicks)} link clicks</strong>. You alsocreated <strong>{createdLinks} new links</strong> during that@@ -146,7 +152,7 @@ export default function ClicksSummary({<Section className="my-8 text-center"><LinkclassName="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"- href={`https://app.dub.co/${projectSlug}`}+ href={`https://app.${appDomain}/${projectSlug}`}>Start creating links</Link>@@ -160,7 +166,7 @@ export default function ClicksSummary({<Section className="my-8 text-center"><LinkclassName="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"- href={`https://app.dub.co/${projectSlug}/analytics?interval=30d`}+ href={`https://app.${appDomain}/${projectSlug}/analytics?interval=30d`}>View my stats</Link>diff --git a/apps/web/emails/project-invite.tsx b/apps/web/emails/project-invite.tsxindex bc815caeaf..8c2348a5d0 100644--- a/apps/web/emails/project-invite.tsx+++ b/apps/web/emails/project-invite.tsx@@ -16,12 +16,14 @@ import Footer from "./components/footer";export default function ProjectInvite({email = "[email protected]",+ appName = "Dub.co",url = "http://localhost:8888/api/auth/callback/email?callbackUrl=http%3A%2F%2Fapp.localhost%3A3000%2Flogin&token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&[email protected]",projectName = "Acme",projectUser = "Brendon Urie",projectUserEmail = "[email protected]",}: {email: string;+ appName: string;url: string;projectName: string;projectUser: string | null;@@ -30,7 +32,9 @@ export default function ProjectInvite({return (<Html><Head />- <Preview>Join {projectName} on Dub</Preview>+ <Preview>+ Join {projectName} on {appName}+ </Preview><Tailwind><Body className="mx-auto my-auto bg-white font-sans"><Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">@@ -39,12 +43,12 @@ export default function ProjectInvite({src={DUB_LOGO}width="40"height="40"- alt="Dub"+ alt={appName}className="mx-auto my-0"/></Section><Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">- Join {projectName} on Dub+ Join {projectName} on {appName}</Heading>{projectUser && projectUserEmail ? (<Text className="text-sm leading-6 text-black">@@ -56,12 +60,12 @@ export default function ProjectInvite({{projectUserEmail}</Link>) has invited you to join the <strong>{projectName}</strong>{" "}- project on Dub!+ project on {appName}!</Text>) : (<Text className="text-sm leading-6 text-black">You have been invited to join the <strong>{projectName}</strong>{" "}- project on Dub!+ project on {appName}!</Text>)}<Section className="mb-8 text-center">diff --git a/apps/web/lib/api/users.ts b/apps/web/lib/api/users.tsindex 21ee27983a..228fa42545 100644--- a/apps/web/lib/api/users.ts+++ b/apps/web/lib/api/users.ts@@ -53,10 +53,11 @@ export async function inviteUser({const url = `${process.env.NEXTAUTH_URL}/api/auth/callback/email?${params}`;return await sendEmail({- subject: "You've been invited to join a project on Dub",+ subject: `You've been invited to join a project on ${process.env.NEXT_PUBLIC_APP_NAME}`,email,react: ProjectInvite({email,+ appName: process.env.NEXT_PUBLIC_APP_NAME as string,url,projectName: project.name,projectUser: session?.user.name || null,diff --git a/apps/web/lib/auth/options.ts b/apps/web/lib/auth/options.tsindex 3983433e64..c782432d0b 100644--- a/apps/web/lib/auth/options.ts+++ b/apps/web/lib/auth/options.ts@@ -22,7 +22,7 @@ export const authOptions: NextAuthOptions = {} else {sendEmail({email: identifier,- subject: "Your Dub Login Link",+ subject: `Your ${process.env.NEXT_PUBLIC_APP_NAME} Login Link`,react: LoginLink({ url, email: identifier }),});}@@ -163,7 +163,9 @@ export const authOptions: NextAuthOptions = {sameSite: "lax",path: "/",// When working on localhost, the cookie domain must be omitted entirely (https://stackoverflow.com/a/1188145)- domain: VERCEL_DEPLOYMENT ? ".dub.co" : undefined,+ domain: VERCEL_DEPLOYMENT+ ? `.${process.env.NEXT_PUBLIC_APP_DOMAIN}`+ : undefined,secure: VERCEL_DEPLOYMENT,},},diff --git a/apps/web/lib/middleware/utils.ts b/apps/web/lib/middleware/utils.tsindex 2aed52aa14..958675a76e 100644--- a/apps/web/lib/middleware/utils.ts+++ b/apps/web/lib/middleware/utils.ts@@ -5,7 +5,7 @@ export const parse = (req: NextRequest) => {domain = domain.replace("www.", ""); // remove www. from domainif (domain === "dub.localhost:8888" || domain.endsWith(".vercel.app")) {// for local development and preview URLs- domain = "dub.sh";+ domain = "apwr.dev";}// path is the path of the URL (e.g. dub.co/stats/github -> /stats/github)diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prismaindex a6c8bcbdbc..3458289646 100644--- a/apps/web/prisma/schema.prisma+++ b/apps/web/prisma/schema.prisma@@ -185,7 +185,7 @@ model Link {password String? // password to access the linkproxy Boolean @default(false) // Proxy to use custom OG tags (stored on redis) – if false, will use OG tags from target url- title String? // OG title for the link (e.g. Dub - Open-Source Bitly Alternative)+ title String? // OG title for the link (e.g. Dub.co - Open-Source Link Management Infrastructure)description String? @db.VarChar(280) // OG description for the link (e.g. An open-source link management tool for modern marketing teams to create, share, and track short links.)image String? @db.LongText // OG image for the link (e.g. https://dub.sh/og-image.png)diff --git a/apps/web/ui/account/delete-account.tsx b/apps/web/ui/account/delete-account.tsxindex a1003acec6..1791361981 100644--- a/apps/web/ui/account/delete-account.tsx+++ b/apps/web/ui/account/delete-account.tsx@@ -12,9 +12,9 @@ export default function DeleteAccountSection() {<div className="flex flex-col space-y-3 p-5 sm:p-10"><h2 className="text-xl font-medium">Delete Account</h2><p className="text-sm text-gray-500">- Permanently delete your Dub account and all of your Dub.sh links +- their stats. This action cannot be undone - please proceed with- caution.+ Permanently delete your {process.env.NEXT_PUBLIC_APP_NAME} account,+ all of your projects, links and their respective stats. This action+ cannot be undone - please proceed with caution.</p></div><div className="border-b border-red-600" />diff --git a/apps/web/ui/account/upload-avatar.tsx b/apps/web/ui/account/upload-avatar.tsxindex 40246b523f..bf4e6ac25e 100644--- a/apps/web/ui/account/upload-avatar.tsx+++ b/apps/web/ui/account/upload-avatar.tsx@@ -71,7 +71,7 @@ export default function UploadAvatar() {<div className="flex flex-col space-y-3 p-5 sm:p-10"><h2 className="text-xl font-medium">Your Avatar</h2><p className="text-sm text-gray-500">- This is your avatar image on Dub.+ This is your avatar image on {process.env.NEXT_PUBLIC_APP_NAME}.</p><div><labeldiff --git a/apps/web/ui/modals/accept-invite-modal.tsx b/apps/web/ui/modals/accept-invite-modal.tsxindex 9a2fdf49df..755af8c72e 100644--- a/apps/web/ui/modals/accept-invite-modal.tsx+++ b/apps/web/ui/modals/accept-invite-modal.tsx@@ -41,7 +41,7 @@ function AcceptInviteModal({<span className="font-mono text-purple-600">{slug || "......"}</span>{" "}- project on Dub+ project on {process.env.NEXT_PUBLIC_APP_NAME}</p></div><div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16">diff --git a/apps/web/ui/modals/add-edit-link-modal/geo-section.tsx b/apps/web/ui/modals/add-edit-link-modal/geo-section.tsxindex 199210df84..2c4865e261 100644--- a/apps/web/ui/modals/add-edit-link-modal/geo-section.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/geo-section.tsx@@ -77,7 +77,7 @@ export default function GeoSection({? {disabledTooltip: (<TooltipContent- title="Geo targeting is only available on Dub's Pro plan. Upgrade to Pro to use this feature."+ title={`Geo targeting is only available on ${process.env.NEXT_PUBLIC_APP_NAME}'s Pro plan. Upgrade to Pro to use this feature.`}cta="Upgrade to Pro"{...(plan === "free"? {diff --git a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx b/apps/web/ui/modals/add-edit-link-modal/og-section.tsxindex 6b43a41783..ee0b992930 100644--- a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/og-section.tsx@@ -267,7 +267,7 @@ export default function OGSection({minRows={3}maxLength={120}className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"- placeholder="Dub - Open Source Bitly Alternative"+ placeholder={`${process.env.NEXT_PUBLIC_APP_NAME} - open-source link management infrastructure.`}value={title || ""}onChange={(e) => {setData({ ...data, title: e.target.value });@@ -298,7 +298,7 @@ export default function OGSection({minRows={3}maxLength={240}className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"- placeholder="Dub is open-source link management tool for modern marketing teams to create, share, and track short links."+ placeholder={`${process.env.NEXT_PUBLIC_APP_NAME} is open-source link management infrastructure for modern marketing teams.`}value={description || ""}onChange={(e) => {setData({diff --git a/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx b/apps/web/ui/modals/add-edit-link-modal/tags-section.tsxindex 317223f81f..f7bfbd675d 100644--- a/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx@@ -114,7 +114,7 @@ export default function TagsSection({<Tooltipcontent={<SimpleTooltipContent- title="Tags are used to organize your links in your Dub dashboard."+ title={`Tags are used to organize your links in your ${process.env.NEXT_PUBLIC_APP_NAME} dashboard.`}cta="Learn more about tags."href={`${HOME_DOMAIN}/help/article/how-to-use-tags`}/>diff --git a/apps/web/ui/modals/add-project-modal.tsx b/apps/web/ui/modals/add-project-modal.tsxindex 513a8f8b1c..c7e72412d0 100644--- a/apps/web/ui/modals/add-project-modal.tsx+++ b/apps/web/ui/modals/add-project-modal.tsx@@ -147,7 +147,9 @@ function AddProjectModalHelper({<p className="block text-sm font-medium text-gray-700">Project Name</p>- <InfoTooltip content="This is the name of your project on Dub." />+ <InfoTooltip+ content={`This is the name of your project on ${process.env.NEXT_PUBLIC_APP_NAME}.`}+ /></label><div className="mt-1 flex rounded-md shadow-sm"><input@@ -158,7 +160,7 @@ function AddProjectModalHelper({autoFocusautoComplete="off"className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"- placeholder="Dub"+ placeholder={process.env.NEXT_PUBLIC_APP_NAME}value={name}onChange={(e) => {setData({ ...data, name: e.target.value });@@ -173,7 +175,9 @@ function AddProjectModalHelper({<p className="block text-sm font-medium text-gray-700">Project Slug</p>- <InfoTooltip content="This is your project's unique slug on Dub." />+ <InfoTooltip+ content={`This is your project's unique slug on {process.env.NEXT_PUBLIC_APP_NAME}.`}+ /></label><div className="relative mt-1 flex rounded-md shadow-sm"><span className="inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-50 px-5 text-gray-500 sm:text-sm">diff --git a/apps/web/ui/modals/google-oauth-modal.tsx b/apps/web/ui/modals/google-oauth-modal.tsxindex 06d00b2837..061abd4abd 100644--- a/apps/web/ui/modals/google-oauth-modal.tsx+++ b/apps/web/ui/modals/google-oauth-modal.tsx@@ -28,7 +28,8 @@ function GoogleOauthModal({<Logo /><h3 className="text-lg font-medium">Connect your Google Account</h3><p className="text-center text-sm text-gray-500">- This allows you to sign in to your Dub account with Google.{" "}+ This allows you to sign in to your {process.env.NEXT_PUBLIC_APP_NAME}{" "}+ account with Google.{" "}<aclassName="underline underline-offset-4 transition-colors hover:text-black"href={`${HOME_DOMAIN}/changelog/sign-in-with-google`}diff --git a/apps/web/ui/modals/import-bitly-modal.tsx b/apps/web/ui/modals/import-bitly-modal.tsxindex e5ec358976..18158fb94e 100644--- a/apps/web/ui/modals/import-bitly-modal.tsx+++ b/apps/web/ui/modals/import-bitly-modal.tsx@@ -92,8 +92,8 @@ function ImportBitlyModal({</div><h3 className="text-lg font-medium">Import Your Bitly Links</h3><p className="text-center text-sm text-gray-500">- Easily import all your existing Bitly links into Dub with just a few- clicks.+ Easily import all your existing Bitly links into{" "}+ {process.env.NEXT_PUBLIC_APP_NAME} with just a few clicks.</p></div>diff --git a/apps/web/ui/modals/import-short-modal.tsx b/apps/web/ui/modals/import-short-modal.tsxindex a556f07d57..9f423ba8f7 100644--- a/apps/web/ui/modals/import-short-modal.tsx+++ b/apps/web/ui/modals/import-short-modal.tsx@@ -92,8 +92,8 @@ function ImportShortModal({</div><h3 className="text-lg font-medium">Import Your Short.io Links</h3><p className="text-center text-sm text-gray-500">- Easily import all your existing Short.io links into Dub with just a- few clicks.+ Easily import all your existing Short.io links into{" "}+ {process.env.NEXT_PUBLIC_APP_NAME} with just a few clicks.</p></div>diff --git a/apps/web/ui/modals/link-qr-modal.tsx b/apps/web/ui/modals/link-qr-modal.tsxindex 5feff39eef..cfe5806e5d 100644--- a/apps/web/ui/modals/link-qr-modal.tsx+++ b/apps/web/ui/modals/link-qr-modal.tsx@@ -293,7 +293,8 @@ function AdvancedSettings({thumbTranslate="translate-x-6"/><p className="text-sm text-gray-600">- Show {!slug || (!logo && "Dub.co")} Logo+ Show {!slug || (!logo && process.env.NEXT_PUBLIC_APP_NAME)}{" "}+ Logo</p></div>) : (@@ -326,7 +327,9 @@ function AdvancedSettings({thumbTranslate="translate-x-6"disabled={true}/>- <p className="text-sm text-gray-600">Show Dub.co Logo</p>+ <p className="text-sm text-gray-600">+ Show {process.env.NEXT_PUBLIC_APP_NAME} Logo+ </p></div></Tooltip>)}diff --git a/apps/web/ui/modals/saml-modal.tsx b/apps/web/ui/modals/saml-modal.tsxindex 02f88c40aa..2296f1a7b7 100644--- a/apps/web/ui/modals/saml-modal.tsx+++ b/apps/web/ui/modals/saml-modal.tsx@@ -43,7 +43,8 @@ function SAMLModal({</div><h3 className="text-lg font-medium">Configure SAML</h3><p className="text-center text-sm text-gray-500">- Select a provider to configure SAML for your Dub project.+ Select a provider to configure SAML for your{" "}+ {process.env.NEXT_PUBLIC_APP_NAME} project.</p></div>diff --git a/apps/web/ui/modals/scim-modal.tsx b/apps/web/ui/modals/scim-modal.tsxindex a649174d8a..08ff338475 100644--- a/apps/web/ui/modals/scim-modal.tsx+++ b/apps/web/ui/modals/scim-modal.tsx@@ -70,7 +70,7 @@ function SCIMModal({<p className="text-center text-sm text-gray-500">{currentProvider? "Your project is currently syncing with your SCIM directory."- : "Select a provider to configure directory sync for your Dub project."}+ : `Select a provider to configure directory sync for your ${process.env.NEXT_PUBLIC_APP_NAME} project.`}</p></div>diff --git a/apps/web/ui/modals/upgrade-plan-modal.tsx b/apps/web/ui/modals/upgrade-plan-modal.tsxindex c4367600a4..5e4a3fe898 100644--- a/apps/web/ui/modals/upgrade-plan-modal.tsx+++ b/apps/web/ui/modals/upgrade-plan-modal.tsx@@ -195,7 +195,8 @@ function UpgradePlanModal({}}className="text-center text-xs text-gray-500 underline-offset-4 transition-all hover:text-gray-800 hover:underline">- Dub {plan === "Pro" ? "Enterprise" : "Pro"}+ {process.env.NEXT_PUBLIC_APP_NAME}{" "}+ {plan === "Pro" ? "Enterprise" : "Pro"}</button><p className="text-gray-500">•</p><adiff --git a/apps/web/ui/projects/upload-logo.tsx b/apps/web/ui/projects/upload-logo.tsxindex 1cc4efdeaf..4feae1308f 100644--- a/apps/web/ui/projects/upload-logo.tsx+++ b/apps/web/ui/projects/upload-logo.tsx@@ -73,7 +73,7 @@ export default function UploadLogo() {<div className="flex flex-col space-y-3 p-5 sm:p-10"><h2 className="text-xl font-medium">Project Logo</h2><p className="text-sm text-gray-500">- This is your project's logo on Dub+ This is your project's logo on {process.env.NEXT_PUBLIC_APP_NAME}</p><div><labeldiff --git a/apps/web/ui/welcome/intro.tsx b/apps/web/ui/welcome/intro.tsxindex 79794b0f5e..70da42d393 100644--- a/apps/web/ui/welcome/intro.tsx+++ b/apps/web/ui/welcome/intro.tsx@@ -50,13 +50,14 @@ export default function Intro() {className="font-display text-4xl font-bold text-gray-800 transition-colors sm:text-5xl"variants={STAGGER_CHILD_VARIANTS}>- Welcome to Dub+ Welcome to {process.env.NEXT_PUBLIC_APP_NAME}</motion.h1><motion.pclassName="max-w-md text-gray-600 transition-colors sm:text-lg"variants={STAGGER_CHILD_VARIANTS}>- Dub gives you marketing superpowers with short links that stand out.+ {process.env.NEXT_PUBLIC_APP_NAME} gives you marketing superpowers+ with short links that stand out.</motion.p><motion.buttonvariants={STAGGER_CHILD_VARIANTS}diff --git a/packages/ui/src/footer.tsx b/packages/ui/src/footer.tsxindex a5355c2210..0859d6cdfc 100644--- a/packages/ui/src/footer.tsx+++ b/packages/ui/src/footer.tsx@@ -53,7 +53,9 @@ export function Footer() {},})}>- <span className="sr-only">Dub.co Logo</span>+ <span className="sr-only">+ {process.env.NEXT_PUBLIC_APP_NAME} Logo+ </span><LogoType className="h-7 text-gray-600" /></Link><p className="max-w-xs text-sm text-gray-500">@@ -196,7 +198,7 @@ export function Footer() {</div><div className="mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24"><p className="text-sm leading-5 text-gray-500">- © {new Date().getFullYear()} Dub.co+ © {new Date().getFullYear()} {process.env.NEXT_PUBLIC_APP_NAME}</p></div></MaxWidthWrapper>diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.tsindex c83059c3a0..c347a1fd16 100644--- a/packages/utils/src/index.ts+++ b/packages/utils/src/index.ts@@ -19,8 +19,8 @@ export function cn(...inputs: ClassValue[]) {}export function constructMetadata({- title = "Dub - Link Management for Modern Marketing Teams",- description = "Dub is an open-source link management tool for modern marketing teams to create, share, and track short links.",+ 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 infrastructure for modern marketing teams to create, share, and track short links.`,image = "https://dub.co/_static/thumbnail.png",icons = "/favicon.ico",noIndex = false,