The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Pushed all domain changes π₯΄
Steven Tey3a504547a915
diff --git a/README.md b/README.mdindex 0edabc54ba..d04865b623 100644--- a/README.md+++ b/README.md@@ -1,4 +1,4 @@-<a href="https://dub.sh">+<a href="https://dub.co"><img alt="Dub β an open-source link management tool for modern marketing teams to create, share, and track short links." src="https://user-images.githubusercontent.com/28986134/200727801-6355c62e-60b5-45d7-a83d-44b11545e471.png"><h1 align="center">Dub</h1></a>@@ -31,6 +31,7 @@Dub is an open-source link management tool for modern marketing teams to create, share, and track short links. Built with [Vercel Edge Functions](http://vercel.com/edge), [Upstash Redis](https://docs.upstash.com/redis), and [PlanetScale MySQL](https://planetscale.com/).Here are some of the features that Dub provides out-of-the-box:+- [Built-in Analytics](#built-in-analytics)- [Custom Domains](#custom-domains)- [QR Code Generator](#qr-code-generator)diff --git a/app/[domain]/page.tsx b/app/[domain]/page.tsxindex dcdad44353..3b80621e22 100644--- a/app/[domain]/page.tsx+++ b/app/[domain]/page.tsx@@ -7,7 +7,7 @@ export async function generateMetadata({}: {params: { domain: string };}) {- const title = `${params.domain.toUpperCase()} - A Dub.sh Custom Domain`;+ 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.`;return constructMetadata({diff --git a/app/[domain]/placeholder.tsx b/app/[domain]/placeholder.tsxindex ecab321291..66dc00e385 100644--- a/app/[domain]/placeholder.tsx+++ b/app/[domain]/placeholder.tsx@@ -65,7 +65,7 @@ export default function PlaceholderContent() {<InlineSnippet>{domain}</InlineSnippet> is a custom domain on{" "}<aclassName="bg-gradient-to-r from-purple-400 to-pink-600 bg-clip-text font-semibold text-transparent decoration-rose-600 hover:underline"- href="https://dub.sh"+ href="https://dub.co"onClick={() =>va.track("Referred from custom domain", {domain,@@ -80,7 +80,7 @@ export default function PlaceholderContent() {</motion.p><motion.avariants={STAGGER_CHILD_VARIANTS}- href="https://dub.sh"+ href="https://dub.co"onClick={() =>va.track("Referred from custom domain", {domain,diff --git a/app/admin/components/impersonate-project.tsx b/app/admin/components/impersonate-project.tsxindex 9cfb86e663..1712a7e041 100644--- a/app/admin/components/impersonate-project.tsx+++ b/app/admin/components/impersonate-project.tsx@@ -71,7 +71,7 @@ const Form = () => {return (<div className="relative flex w-full 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">- app.dub.sh+ app.dub.co</span><inputname="slug"diff --git a/app/app/(auth)/login/form.tsx b/app/app/(auth)/login/form.tsxindex 3c60fc5855..0285aaa006 100644--- a/app/app/(auth)/login/form.tsx+++ b/app/app/(auth)/login/form.tsx@@ -142,7 +142,7 @@ export default function LoginForm() {Project Slug</h2><InfoTooltip- content={`This is your project's unique identifier on Dub. E.g. app.dub.sh/acme is "acme".`}+ content={`This is your project's unique identifier on Dub. E.g. app.dub.co/acme is "acme".`}/></div><inputdiff --git a/app/app/(auth)/register/form.tsx b/app/app/(auth)/register/form.tsxindex 1d03c2e27c..46fd8e89a2 100644--- a/app/app/(auth)/register/form.tsx+++ b/app/app/(auth)/register/form.tsx@@ -59,7 +59,7 @@ export default function RegisterForm() {Project Slug</h2><InfoTooltip- content={`This is your project's unique identifier on Dub. E.g. app.dub.sh/acme is "acme".`}+ content={`This is your project's unique identifier on Dub. E.g. app.dub.co/acme is "acme".`}/></div><inputdiff --git a/app/dub.sh/(blog-post)/blog/[slug]/page.tsx b/app/dub.co/(blog-post)/blog/[slug]/page.tsxsimilarity index 100%rename from app/dub.sh/(blog-post)/blog/[slug]/page.tsxrename to app/dub.co/(blog-post)/blog/[slug]/page.tsxdiff --git a/app/dub.sh/_modal/(.)stats/[key]/default.tsx b/app/dub.co/_modal/(.)stats/[key]/default.tsxsimilarity index 100%rename from app/dub.sh/_modal/(.)stats/[key]/default.tsxrename to app/dub.co/_modal/(.)stats/[key]/default.tsxdiff --git a/app/dub.sh/_modal/(.)stats/[key]/page.tsx b/app/dub.co/_modal/(.)stats/[key]/page.tsxsimilarity index 100%rename from app/dub.sh/_modal/(.)stats/[key]/page.tsxrename to app/dub.co/_modal/(.)stats/[key]/page.tsxdiff --git a/app/dub.sh/_modal/default.tsx b/app/dub.co/_modal/default.tsxsimilarity index 100%rename from app/dub.sh/_modal/default.tsxrename to app/dub.co/_modal/default.tsxdiff --git a/app/dub.sh/atom/route.ts b/app/dub.co/atom/route.tssimilarity index 64%rename from app/dub.sh/atom/route.tsrename to app/dub.co/atom/route.tsindex 17dd525ead..5bd5b96313 100644--- a/app/dub.sh/atom/route.ts+++ b/app/dub.co/atom/route.ts@@ -6,19 +6,21 @@ export async function GET() {<feed xmlns="http://www.w3.org/2005/Atom"><title>Dub</title><subtitle>Changelog</subtitle>- <link href="https://dub.sh/atom" rel="self"/>- <link href="https://dub.sh/"/>+ <link href="https://dub.co/atom" rel="self"/>+ <link href="https://dub.co/"/><updated>${allChangelogPosts[0].publishedAt}</updated>- <id>https://dub.sh/</id>${allChangelogPosts.map((post) => {- return `+ <id>https://dub.co/</id>${allChangelogPosts+ .map((post) => {+ return `<entry>- <id>https://dub.sh/changelog/${post.slug}</id>+ <id>https://dub.co/changelog/${post.slug}</id><title>${post.title}</title>- <link href="https://dub.sh/changelog/${post.slug}"/>+ <link href="https://dub.co/changelog/${post.slug}"/><updated>${post.publishedAt}</updated><author><name>${post.author}</name></author></entry>`;- }).join("")}+ })+ .join("")}</feed>`,{headers: {diff --git a/app/dub.sh/blog/category/[slug]/page.tsx b/app/dub.co/blog/category/[slug]/page.tsxsimilarity index 100%rename from app/dub.sh/blog/category/[slug]/page.tsxrename to app/dub.co/blog/category/[slug]/page.tsxdiff --git a/app/dub.sh/blog/layout.tsx b/app/dub.co/blog/layout.tsxsimilarity index 100%rename from app/dub.sh/blog/layout.tsxrename to app/dub.co/blog/layout.tsxdiff --git a/app/dub.sh/blog/page.tsx b/app/dub.co/blog/page.tsxsimilarity index 100%rename from app/dub.sh/blog/page.tsxrename to app/dub.co/blog/page.tsxdiff --git a/app/dub.sh/changelog/[slug]/page.tsx b/app/dub.co/changelog/[slug]/page.tsxsimilarity index 96%rename from app/dub.sh/changelog/[slug]/page.tsxrename to app/dub.co/changelog/[slug]/page.tsxindex 7962a66c9e..4bcd2eee20 100644--- a/app/dub.sh/changelog/[slug]/page.tsx+++ b/app/dub.co/changelog/[slug]/page.tsx@@ -89,7 +89,7 @@ export default async function ChangelogPost({<Author username={post.author} /><div className="flex items-center space-x-6"><Link- href={`https://twitter.com/intent/tweet?text=${post.title}&url=https://dub.sh/changelog/${post.slug}&via=${post.author}`}+ href={`https://twitter.com/intent/tweet?text=${post.title}&url=https://dub.co/changelog/${post.slug}&via=${post.author}`}target="_blank"rel="noopener noreferrer"className="transition-all hover:scale-110"@@ -98,7 +98,7 @@ export default async function ChangelogPost({</Link><Linkhref={`- http://www.linkedin.com/shareArticle?mini=true&url=https://dub.sh/changelog/${post.slug}`}+ http://www.linkedin.com/shareArticle?mini=true&url=https://dub.co/changelog/${post.slug}`}target="_blank"rel="noopener noreferrer"className="transition-all hover:scale-110"@@ -106,7 +106,7 @@ export default async function ChangelogPost({<LinkedIn className="h-6 w-6" fill="black" /></Link><Link- href={`https://www.facebook.com/sharer/sharer.php?u=https://dub.sh/changelog/${post.slug}`}+ href={`https://www.facebook.com/sharer/sharer.php?u=https://dub.co/changelog/${post.slug}`}target="_blank"rel="noopener noreferrer"className="transition-all hover:scale-110"diff --git a/app/dub.sh/changelog/page.tsx b/app/dub.co/changelog/page.tsxsimilarity index 100%rename from app/dub.sh/changelog/page.tsxrename to app/dub.co/changelog/page.tsxdiff --git a/app/dub.sh/help/article/[slug]/page.tsx b/app/dub.co/help/article/[slug]/page.tsxsimilarity index 100%rename from app/dub.sh/help/article/[slug]/page.tsxrename to app/dub.co/help/article/[slug]/page.tsxdiff --git a/app/dub.sh/help/category/[slug]/page.tsx b/app/dub.co/help/category/[slug]/page.tsxsimilarity index 100%rename from app/dub.sh/help/category/[slug]/page.tsxrename to app/dub.co/help/category/[slug]/page.tsxdiff --git a/app/dub.sh/help/not-found.tsx b/app/dub.co/help/not-found.tsxsimilarity index 100%rename from app/dub.sh/help/not-found.tsxrename to app/dub.co/help/not-found.tsxdiff --git a/app/dub.sh/help/page.tsx b/app/dub.co/help/page.tsxsimilarity index 100%rename from app/dub.sh/help/page.tsxrename to app/dub.co/help/page.tsxdiff --git a/app/dub.sh/layout.tsx b/app/dub.co/layout.tsxsimilarity index 100%rename from app/dub.sh/layout.tsxrename to app/dub.co/layout.tsxdiff --git a/app/dub.sh/metatags/content.tsx b/app/dub.co/metatags/content.tsxsimilarity index 97%rename from app/dub.sh/metatags/content.tsxrename to app/dub.co/metatags/content.tsxindex 39c369fc6c..2bb04546ae 100644--- a/app/dub.sh/metatags/content.tsx+++ b/app/dub.co/metatags/content.tsx@@ -106,7 +106,7 @@ export default function MetatagsContent() {className="hover:bg/black-[0.08] group relative flex cursor-copy items-center space-x-5 rounded-full bg-black/5 py-2.5 pl-5 pr-3 transition-all"onClick={() => {navigator.clipboard.writeText(- `https://api.dub.sh/metatags?url=${getUrlFromString(url)}`,+ `https://api.dub.co/metatags?url=${getUrlFromString(url)}`,);setCopied(true);toast.success("Copied URL to clipboard!");@@ -117,7 +117,7 @@ export default function MetatagsContent() {><div className="w-11/12 overflow-scroll scrollbar-hide"><p className="whitespace-nowrap text-sm font-medium text-gray-600">- https://api.dub.sh/metatags?url=+ https://api.dub.co/metatags?url=<span className="text-amber-600">{getUrlFromString(url)}</span></p></div>diff --git a/app/dub.sh/metatags/launch.tsx b/app/dub.co/metatags/launch.tsxsimilarity index 100%rename from app/dub.sh/metatags/launch.tsxrename to app/dub.co/metatags/launch.tsxdiff --git a/app/dub.sh/metatags/page.tsx b/app/dub.co/metatags/page.tsxsimilarity index 100%rename from app/dub.sh/metatags/page.tsxrename to app/dub.co/metatags/page.tsxdiff --git a/app/dub.sh/page.tsx b/app/dub.co/page.tsxsimilarity index 100%rename from app/dub.sh/page.tsxrename to app/dub.co/page.tsxdiff --git a/app/dub.sh/pricing/page.tsx b/app/dub.co/pricing/page.tsxsimilarity index 100%rename from app/dub.sh/pricing/page.tsxrename to app/dub.co/pricing/page.tsxdiff --git a/app/dub.sh/privacy/page.tsx b/app/dub.co/privacy/page.tsxsimilarity index 100%rename from app/dub.sh/privacy/page.tsxrename to app/dub.co/privacy/page.tsxdiff --git a/app/dub.sh/stats/[key]/page.tsx b/app/dub.co/stats/[key]/page.tsxsimilarity index 96%rename from app/dub.sh/stats/[key]/page.tsxrename to app/dub.co/stats/[key]/page.tsxindex be1ade2f6a..2ea57ab487 100644--- a/app/dub.sh/stats/[key]/page.tsx+++ b/app/dub.co/stats/[key]/page.tsx@@ -31,7 +31,7 @@ export async function generateMetadata({return constructMetadata({title: `Stats for dub.sh/${params.key} β Dub`,description: `Dub is an open-source link management tool for modern marketing teams to create, share, and track short links.`,- image: `https://dub.sh/api/og/stats?domain=dub.sh&key=${params.key}`,+ image: `https://dub.co/api/og/stats?domain=dub.sh&key=${params.key}`,});}diff --git a/app/dub.sh/terms/page.tsx b/app/dub.co/terms/page.tsxsimilarity index 100%rename from app/dub.sh/terms/page.tsxrename to app/dub.co/terms/page.tsxdiff --git a/app/protected/[domain]/[key]/page.tsx b/app/protected/[domain]/[key]/page.tsxindex 6b53eedc37..04470a3c00 100644--- a/app/protected/[domain]/[key]/page.tsx+++ b/app/protected/[domain]/[key]/page.tsx@@ -6,7 +6,7 @@ import PasswordForm from "./form";const title = "Password Required";const description ="This link is password protected. Please enter the password to view it.";-const image = "https://dub.sh/_static/password-protected.png";+const image = "https://dub.co/_static/password-protected.png";export const metadata = constructMetadata({title,@@ -20,7 +20,7 @@ export default function PasswordProtectedLinkPage() {<Background /><div className="w-full max-w-md overflow-hidden rounded-2xl border border-gray-100 shadow-xl"><div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 bg-white px-4 py-6 pt-8 text-center sm:px-16">- <a href="https://dub.sh" target="_blank" rel="noreferrer">+ <a href="https://dub.co" target="_blank" rel="noreferrer"><Logo /></a><h3 className="text-xl font-semibold">{title}</h3>diff --git a/app/robots.ts b/app/robots.tsindex 508db7b4d0..38d07f5fa6 100644--- a/app/robots.ts+++ b/app/robots.ts@@ -1,11 +1,11 @@-import { isHomeHostname } from "#/lib/utils";import { MetadataRoute } from "next";import { headers } from "next/headers";+import { isHomeHostname } from "#/lib/constants";export default function robots(): MetadataRoute.Robots {const headersList = headers();let domain = headersList.get("host") as string;- if (isHomeHostname(domain)) domain = "dub.sh";+ if (isHomeHostname(domain)) domain = "dub.co";return {rules: {diff --git a/app/sitemap.ts b/app/sitemap.tsindex 4b4872c1bf..afad53b672 100644--- a/app/sitemap.ts+++ b/app/sitemap.ts@@ -6,13 +6,13 @@ import {allHelpPosts,allLegalPosts,} from "contentlayer/generated";-import { isHomeHostname } from "#/lib/utils";+import { isHomeHostname } from "#/lib/constants";import { BLOG_CATEGORIES, HELP_CATEGORIES } from "#/lib/constants/content";export default async function Sitemap() {const headersList = headers();let domain = headersList.get("host") as string;- if (isHomeHostname(domain)) domain = "dub.sh";+ if (isHomeHostname(domain)) domain = "dub.co";const links = await prisma.link.findMany({where: {@@ -34,7 +34,7 @@ export default async function Sitemap() {url: `https://${domain}`,lastModified: new Date(),},- ...(domain === "dub.sh"+ ...(domain === "dub.co"? [{url: `https://${domain}/pricing`,diff --git a/app/ui/home/footer.tsx b/app/ui/home/footer.tsxindex deda8a83f0..41c50255c4 100644--- a/app/ui/home/footer.tsx+++ b/app/ui/home/footer.tsx@@ -24,10 +24,10 @@ const navigation = {};export default function Footer() {- const { domain = "dub.sh" } = useParams() as { domain: string };+ const { domain = "dub.co" } = useParams() as { domain: string };const createHref = (href: string) =>- domain === "dub.sh" ? href : `https://dub.sh${href}`;+ domain === "dub.co" ? href : `https://dub.co${href}`;return (<footer className="z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg">@@ -36,7 +36,7 @@ export default function Footer() {<div className="space-y-8 xl:col-span-2"><Linkhref={createHref("/")}- {...(domain !== "dub.sh" && {+ {...(domain !== "dub.co" && {onClick: () => {va.track("Referred from custom domain", {domain,@@ -45,7 +45,7 @@ export default function Footer() {},})}>- <span className="sr-only">Dub.sh Logo</span>+ <span className="sr-only">Dub.co Logo</span><LogoType className="h-7 text-gray-600" /></Link><p className="max-w-xs text-sm text-gray-500">@@ -93,7 +93,7 @@ export default function Footer() {<li key={item.name}><Linkhref={createHref(item.href)}- {...(domain !== "dub.sh" && {+ {...(domain !== "dub.co" && {onClick: () => {va.track("Referred from custom domain", {domain,@@ -116,7 +116,7 @@ export default function Footer() {<li key={item.name}><Linkhref={createHref(item.href)}- {...(domain !== "dub.sh" && {+ {...(domain !== "dub.co" && {onClick: () => {va.track("Referred from custom domain", {domain,@@ -143,7 +143,7 @@ export default function Footer() {<li key={item.name}><Linkhref={createHref(item.href)}- {...(domain !== "dub.sh" && {+ {...(domain !== "dub.co" && {onClick: () => {va.track("Referred from custom domain", {domain,@@ -166,7 +166,7 @@ export default function Footer() {<li key={item.name}><Linkhref={createHref(item.href)}- {...(domain !== "dub.sh" && {+ {...(domain !== "dub.co" && {onClick: () => {va.track("Referred from custom domain", {domain,@@ -187,7 +187,7 @@ export default 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.sh+ Β© {new Date().getFullYear()} Dub.co</p></div></MaxWidthWrapper>diff --git a/app/ui/home/nav-mobile.tsx b/app/ui/home/nav-mobile.tsxindex 22c24d53cc..5cc8f1f2d1 100644--- a/app/ui/home/nav-mobile.tsx+++ b/app/ui/home/nav-mobile.tsx@@ -28,13 +28,13 @@ const sidebar = {};export default function MobileNav() {- const { domain = "dub.sh" } = useParams() as { domain: string };+ const { domain = "dub.co" } = useParams() as { domain: string };const [isOpen, toggleOpen] = useCycle(false, true);const containerRef = useRef(null);const { height } = useDimensions(containerRef);const { data: session, status } = useSession() || {- status: "unauthenticated", // if `useSession` is undefined, we're on a non dub.sh domain+ status: "unauthenticated", // if `useSession` is undefined, we're on a non dub.co domain};return (@@ -60,9 +60,9 @@ export default function MobileNav() {<MenuItem><Linkhref={- domain === "dub.sh"+ domain === "dub.co"? `/${slug}`- : `https://dub.sh/${slug}?utm_source=${domain}&utm_medium=referral&utm_campaign=custom-domain`+ : `https://dub.co/${slug}?utm_source=${domain}&utm_medium=referral&utm_campaign=custom-domain`}onClick={() => toggleOpen()}className="flex w-full font-semibold capitalize"diff --git a/app/ui/home/nav.tsx b/app/ui/home/nav.tsxindex eb027c118a..d95a8afc2d 100644--- a/app/ui/home/nav.tsx+++ b/app/ui/home/nav.tsx@@ -30,16 +30,16 @@ export const navItems = [];export default function Nav() {- const { domain = "dub.sh" } = useParams() as { domain: string };+ const { domain = "dub.co" } = useParams() as { domain: string };const scrolled = useScroll(80);const selectedLayout = useSelectedLayoutSegment();const helpCenter = selectedLayout === "help";const { data: session, status } =- domain === "dub.sh"+ domain === "dub.co"? useSession(): {data: null,- status: "unauthenticated", // if `useSession` is undefined, we're on a non dub.sh domain+ status: "unauthenticated", // if `useSession` is undefined, we're on a non dub.co domain};return (@@ -58,8 +58,8 @@ export default function Nav() {<div className="flex h-14 items-center justify-between"><div className="flex items-center space-x-4"><Link- href={domain === "dub.sh" ? "/" : `https://dub.sh`}- {...(domain !== "dub.sh" && {+ href={domain === "dub.co" ? "/" : `https://dub.co`}+ {...(domain !== "dub.co" && {onClick: () => {va.track("Referred from custom domain", {domain,@@ -87,11 +87,11 @@ export default function Nav() {id={`nav-${slug}`}key={slug}href={- domain === "dub.sh"+ domain === "dub.co"? `/${slug}`- : `https://dub.sh/${slug}`+ : `https://dub.co/${slug}`}- {...(domain !== "dub.sh" && {+ {...(domain !== "dub.co" && {onClick: () => {va.track("Referred from custom domain", {domain,@@ -125,7 +125,7 @@ export default function Nav() {<><Linkhref={`${APP_DOMAIN}/login`}- {...(domain !== "dub.sh" && {+ {...(domain !== "dub.co" && {onClick: () => {va.track("Referred from custom domain", {domain,@@ -139,7 +139,7 @@ export default function Nav() {</Link><Linkhref={`${APP_DOMAIN}/register`}- {...(domain !== "dub.sh" && {+ {...(domain !== "dub.co" && {onClick: () => {va.track("Referred from custom domain", {domain,diff --git a/app/ui/modals/add-edit-link-modal/preview.tsx b/app/ui/modals/add-edit-link-modal/preview.tsxindex d1ec8899ad..e82622dde8 100644--- a/app/ui/modals/add-edit-link-modal/preview.tsx+++ b/app/ui/modals/add-edit-link-modal/preview.tsx@@ -16,7 +16,7 @@ export default function Preview({const { title, description, image, url, password } = data;const [debouncedUrl] = useDebounce(url, 500);const hostname = useMemo(() => {- if (password) return "dub.sh";+ if (password) return "dub.co";return getDomainWithoutWWW(debouncedUrl);}, [password, debouncedUrl]);diff --git a/app/ui/modals/add-edit-link-modal/unsplash-search.tsx b/app/ui/modals/add-edit-link-modal/unsplash-search.tsxindex b0c6aedb3c..028113cc60 100644--- a/app/ui/modals/add-edit-link-modal/unsplash-search.tsx+++ b/app/ui/modals/add-edit-link-modal/unsplash-search.tsx@@ -78,7 +78,7 @@ export default function UnsplashSearch({className="underline underline-offset-2"target="_blank"rel="noopener noreferrer"- href={`${photo.user.links.html}?utm_source=dub.sh&utm_medium=referral`}+ href={`${photo.user.links.html}?utm_source=dub.co&utm_medium=referral`}>{photo.user.name}</a>diff --git a/app/ui/modals/link-qr-modal.tsx b/app/ui/modals/link-qr-modal.tsxindex 15b6e9efc2..ca0317842a 100644--- a/app/ui/modals/link-qr-modal.tsx+++ b/app/ui/modals/link-qr-modal.tsx@@ -72,7 +72,7 @@ function LinkQRModalHelper({() => ({value: linkConstructor({key: props.key,- domain: props.domain || "dub.sh",+ domain: props.domain,}),bgColor: "#ffffff",fgColor,@@ -226,7 +226,7 @@ function AdvancedSettings({ qrData, setFgColor, showLogo, setShowLogo }) {thumbDimensions="w-5 h-5"thumbTranslate="translate-x-6"/>- <p className="text-sm text-gray-600">Show Dub.sh Logo</p>+ <p className="text-sm text-gray-600">Show dub.co Logo</p></div>) : (<Tooltip@@ -247,7 +247,7 @@ function AdvancedSettings({ qrData, setFgColor, showLogo, setShowLogo }) {thumbTranslate="translate-x-6"disabled={true}/>- <p className="text-sm text-gray-600">Show Dub.sh Logo</p>+ <p className="text-sm text-gray-600">Show dub.co Logo</p></div></Tooltip>)}@@ -310,7 +310,7 @@ function QrDropdown({ download, qrData, showLogo, logo }) {...(showLogo && {imageSettings: {...qrData.imageSettings,- src: logo || "https://dub.sh/_static/logo.svg",+ src: logo || "https://dub.co/_static/logo.svg",},}),}),diff --git a/app/ui/stats/feedback/action.ts b/app/ui/stats/feedback/action.tsindex a0975b46e8..1ed87c4008 100644--- a/app/ui/stats/feedback/action.ts+++ b/app/ui/stats/feedback/action.ts@@ -11,8 +11,8 @@ export async function submitFeedback(data: FormData) {Authorization: "Bearer " + process.env.RESEND_API_KEY,},body: JSON.stringify({- from: "[email protected]",- to: "[email protected]",+ from: "[email protected]",+ to: "[email protected]",reply_to: email,...(email && { reply_to: email }),subject: "π New Feedback Received!",diff --git a/app/ui/stats/index.tsx b/app/ui/stats/index.tsxindex 19ddb26859..95c83940ec 100644--- a/app/ui/stats/index.tsx+++ b/app/ui/stats/index.tsx@@ -1,9 +1,9 @@"use client";/*This Stats component lives in 3 different places:- 1. Project link page, e.g. app.dub.sh/dub/dub.sh/github- 2. Generic Dub.sh link page, e.g. app.dub.sh/links/steven- 3. Public stats page, e.g. dub.sh/stats/github, stey.me/stats/weathergpt+ 1. Project link page, e.g. app.dub.co/dub/dub.sh/github+ 2. Generic Dub.co link page, e.g. app.dub.co/links/steven+ 3. Public stats page, e.g. dub.co/stats/github, stey.me/stats/weathergptWe use the `useEndpoint()` hook to get the correct layout*/@@ -81,7 +81,7 @@ export default function Stats({: "";const { basePath, domain, endpoint } = useMemo(() => {- // Project link page, e.g. app.dub.sh/dub/dub.sh/github+ // Project link page, e.g. app.dub.co/dub/dub.sh/githubif (slug && domainSlug && key) {return {basePath: `/${slug}/${domainSlug}/${key}`,@@ -89,7 +89,7 @@ export default function Stats({endpoint: `/api/links/${key}/stats`,};- // Generic Dub.sh link page, e.g. app.dub.sh/links/steven+ // Generic Dub.co link page, e.g. app.dub.co/links/steven} else if (key && pathname?.startsWith("/links")) {return {basePath: `/links/${key}`,@@ -98,7 +98,7 @@ export default function Stats({};}- // Public stats page, e.g. dub.sh/stats/github, stey.me/stats/weathergpt+ // Public stats page, e.g. dub.co/stats/github, stey.me/stats/weathergptreturn {basePath: `/stats/${key}`,domain: staticDomain,diff --git a/components/app/domains/domain-configuration.tsx b/components/app/domains/domain-configuration.tsxindex 189387868f..3ae596b144 100644--- a/components/app/domains/domain-configuration.tsx+++ b/components/app/domains/domain-configuration.tsx@@ -115,7 +115,7 @@ export default function DomainConfiguration({<div><p className="text-sm font-bold">Value</p><p className="mt-2 font-mono text-sm">- {recordType === "A" ? `76.76.21.21` : `cname.dub.sh`}+ {recordType === "A" ? `76.76.21.21` : `cname.dub.co`}</p></div><div>diff --git a/components/app/modals/add-edit-domain-modal.tsx b/components/app/modals/add-edit-domain-modal.tsxindex 1ea0e023c5..944b5cf392 100644--- a/components/app/modals/add-edit-domain-modal.tsx+++ b/components/app/modals/add-edit-domain-modal.tsx@@ -243,7 +243,7 @@ function AddEditDomainModal({Domain is already in use.{" "}<aclassName="underline"- href="mailto:[email protected]?subject=My Domain Is Already In Use"+ href="mailto:[email protected]?subject=My Domain Is Already In Use">Contact us</a>{" "}diff --git a/components/app/modals/add-project-modal.tsx b/components/app/modals/add-project-modal.tsxindex 7e5f75e6b4..6585e52b39 100644--- a/components/app/modals/add-project-modal.tsx+++ b/components/app/modals/add-project-modal.tsx@@ -188,7 +188,7 @@ function AddProjectModalHelper({</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">- app.dub.sh+ app.dub.co</span><inputname="slug"@@ -269,7 +269,7 @@ function AddProjectModalHelper({Domain is already in use.{" "}<aclassName="underline"- href="mailto:[email protected]?subject=My Domain Is Already In Use"+ href="mailto:[email protected]?subject=My Domain Is Already In Use">Contact us</a>{" "}diff --git a/components/app/modals/google-oauth-modal.tsx b/components/app/modals/google-oauth-modal.tsxindex 29811f1e64..b28215241c 100644--- a/components/app/modals/google-oauth-modal.tsx+++ b/components/app/modals/google-oauth-modal.tsx@@ -11,6 +11,7 @@ import Button from "#/ui/button";import { Logo } from "#/ui/icons";import { Google } from "@/components/shared/icons";import Cookies from "js-cookie";+import { HOME_DOMAIN } from "#/lib/constants";function GoogleOauthModal({showGoogleOauthModal,@@ -33,7 +34,7 @@ function GoogleOauthModal({This allows you to sign in to your Dub account with Google.{" "}<aclassName="underline underline-offset-4 transition-colors hover:text-black"- href="https://dub.sh/changelog/sign-in-with-google"+ href={`${HOME_DOMAIN}/changelog/sign-in-with-google`}target="_blank"rel="noopener noreferrer">diff --git a/components/app/modals/link-qr-modal.tsx b/components/app/modals/link-qr-modal.tsxindex c5c23ee1fe..7dd522a429 100644--- a/components/app/modals/link-qr-modal.tsx+++ b/components/app/modals/link-qr-modal.tsx@@ -83,7 +83,7 @@ function LinkQRModalHelper({() => ({value: linkConstructor({key: props.key,- domain: props.domain || "dub.sh",+ domain: props.domain,}),bgColor: "#ffffff",fgColor,@@ -260,7 +260,7 @@ function AdvancedSettings({thumbTranslate="translate-x-6"/><p className="text-sm text-gray-600">- Show {!slug || (!logo && "Dub.sh")} Logo+ Show {!slug || (!logo && "Dub.co")} Logo</p></div>) : (@@ -293,7 +293,7 @@ function AdvancedSettings({thumbTranslate="translate-x-6"disabled={true}/>- <p className="text-sm text-gray-600">Show Dub.sh Logo</p>+ <p className="text-sm text-gray-600">Show Dub.co Logo</p></div></Tooltip>)}@@ -356,7 +356,7 @@ function QrDropdown({ download, qrData, showLogo, logo }) {...(showLogo && {imageSettings: {...qrData.imageSettings,- src: logo || "https://dub.sh/_static/logo.svg",+ src: logo || "https://dub.co/_static/logo.svg",},}),}),diff --git a/components/app/modals/upgrade-plan-modal.tsx b/components/app/modals/upgrade-plan-modal.tsxindex 609ae8d799..463efedadc 100644--- a/components/app/modals/upgrade-plan-modal.tsx+++ b/components/app/modals/upgrade-plan-modal.tsx@@ -10,7 +10,7 @@ import Button from "#/ui/button";import { useRouter } from "next/router";import Link from "next/link";import { motion } from "framer-motion";-import { STAGGER_CHILD_VARIANTS } from "#/lib/constants";+import { HOME_DOMAIN, STAGGER_CHILD_VARIANTS } from "#/lib/constants";import { CheckCircleFill } from "@/components/shared/icons";import { capitalize } from "#/lib/utils";import { PLANS } from "#/lib/stripe/utils";@@ -197,7 +197,7 @@ function UpgradePlanModal({</button><p className="text-gray-500">β’</p><a- href="https://dub.sh/pricing"+ href={`${HOME_DOMAIN}/pricing`}target="_blank"rel="noopener noreferrer"className="text-center text-xs text-gray-500 underline-offset-4 transition-all hover:text-gray-800 hover:underline"diff --git a/components/layout/app/index.tsx b/components/layout/app/index.tsxindex 68e69753d4..07cce6decc 100644--- a/components/layout/app/index.tsx+++ b/components/layout/app/index.tsx@@ -134,7 +134,7 @@ export default function AppLayout({className="text-sm font-medium">{linkConstructor({- domain: domain || "dub.sh",+ domain,key,pretty: true,})}diff --git a/components/layout/app/nav-tabs.tsx b/components/layout/app/nav-tabs.tsxindex 30ccf985b7..ee1ed83a23 100644--- a/components/layout/app/nav-tabs.tsx+++ b/components/layout/app/nav-tabs.tsx@@ -15,12 +15,12 @@ const TabsHelper = (router: NextRouter): { name: string; href: string }[] => {key?: string;};if (key) {- // link stats page (e.g. app.dub.sh/steven/stey.me/devrel, app.dub.sh/links/github)+ // link stats page (e.g. app.dub.co/steven/stey.me/devrel, app.dub.co/links/github)return [{ name: "β All Links", href: `/${slug || "links"}` }];} else if (domain) {- // root domain stats page (e.g. app.dub.sh/steven/stey.me)+ // root domain stats page (e.g. app.dub.co/steven/stey.me)return [{ name: "β All Domains", href: `/${slug}/domains` }];- // project pages (e.g. app.dub.sh/steven, app.dub.sh/steven/settings)+ // project pages (e.g. app.dub.co/steven, app.dub.co/steven/settings)} else if (slug) {return [{ name: "Links", href: `/${slug}` },@@ -28,7 +28,7 @@ const TabsHelper = (router: NextRouter): { name: string; href: string }[] => {{ name: "Settings", href: `/${slug}/settings` },];}- // home page (e.g. app.dub.sh, app.dub.sh/settings)+ // home page (e.g. app.dub.co, app.dub.co/settings)return [{ name: "Projects", href: `/` },{ name: "Dub.sh Links", href: `/links` },diff --git a/components/layout/meta.tsx b/components/layout/meta.tsxindex 301ff04f9e..f3a51a512b 100644--- a/components/layout/meta.tsx+++ b/components/layout/meta.tsx@@ -4,7 +4,7 @@ import { FAVICON_FOLDER } from "#/lib/constants";export default function Meta({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.",- image = "https://dub.sh/_static/thumbnail.png",+ image = "https://dub.co/_static/thumbnail.png",}: {title?: string;description?: string;diff --git a/components/stats/index.tsx b/components/stats/index.tsxindex df1a2a551b..ef607e46f4 100644--- a/components/stats/index.tsx+++ b/components/stats/index.tsx@@ -30,7 +30,7 @@ export default function Stats({ staticDomain }: { staticDomain?: string }) {const {slug,domain: domainSlug,- key = "_root", // if key is undefined, it's the root domain stats page (e.g. app.dub.sh/steven/stey.me)+ key = "_root", // if key is undefined, it's the root domain stats page (e.g. app.dub.co/steven/stey.me)interval = "24h",} = router.query as {slug?: string;@@ -49,10 +49,10 @@ export default function Stats({ staticDomain }: { staticDomain?: string }) {: "";const { basePath, domain, endpoint } = useMemo(() => {- // Project link page, e.g. app.dub.sh/dub/dub.sh/github+ // Project link page, e.g. app.dub.co/dub/dub.sh/githubif (slug && domainSlug && key) {return {- // for _root domain stats page (e.g. app.dub.sh/steven/stey.me), we don't want to show the key in the URL+ // for _root domain stats page (e.g. app.dub.co/steven/stey.me), we don't want to show the key in the URLbasePath: `/${slug}/${domainSlug}${key === "_root" ? "" : `/${encodeURIComponent(key)}`}`,@@ -60,7 +60,7 @@ export default function Stats({ staticDomain }: { staticDomain?: string }) {endpoint: `/api/links/${encodeURIComponent(key)}/stats`,};- // Generic Dub.sh link page, e.g. app.dub.sh/links/steven+ // Generic Dub.sh link page, e.g. app.dub.co/links/steven} else if (key && router.asPath.startsWith("/links")) {return {basePath: `/links/${encodeURIComponent(key)}`,@@ -69,7 +69,7 @@ export default function Stats({ staticDomain }: { staticDomain?: string }) {};}- // Public stats page, e.g. dub.sh/stats/github, stey.me/stats/weathergpt+ // Public stats page, e.g. dub.co/stats/github, stey.me/stats/weathergptreturn {basePath: `/stats/${encodeURIComponent(key)}`,domain: staticDomain,diff --git a/content/blog/help-center.mdx b/content/blog/help-center.mdxindex c2102b8ba4..19f7620035 100644--- a/content/blog/help-center.mdx+++ b/content/blog/help-center.mdx@@ -42,7 +42,7 @@ The Help Center features a beautiful search experience that lets you find answerOur new search feature is typo-tolerant and lets you search for articles based on their title and anchor headings.-The best part: **It can be accessed anywhere on Dub β even inside the [Dub dashboard](https://app.dub.sh) itself**! All you need to do is enter the magic command: `CMD+K` (or `CTRL+K` on Windows). Go ahead and give it a try!+The best part: **It can be accessed anywhere on Dub β even inside the [Dub dashboard](https://app.dub.co) itself**! All you need to do is enter the magic command: `CMD+K` (or `CTRL+K` on Windows). Go ahead and give it a try!We're also planning to add an AI assistant to help you find answers to your questions in the future:diff --git a/content/blog/migration-assistants.mdx b/content/blog/migration-assistants.mdxindex 1876097cbc..e703ba7ad2 100644--- a/content/blog/migration-assistants.mdx+++ b/content/blog/migration-assistants.mdx@@ -70,4 +70,4 @@ With the Short.io migration assistant, all you need to do is enter your [Short.i<HelpArticles articles={["migrating-from-short"]} />-We're hoping this will make it easier for you to migrate your links to Dub. If you have any questions or run into any issues, feel free to [send us an email](mailto:[email protected]?subject=Question%20about%20migrating%20to%20Dub) or [reach out to us on Twitter](https://twitter.com/dubdotsh) and we'll be happy to help.+We're hoping this will make it easier for you to migrate your links to Dub. If you have any questions or run into any issues, feel free to [send us an email](mailto:[email protected]?subject=Question%20about%20migrating%20to%20Dub) or [reach out to us on Twitter](https://twitter.com/dubdotsh) and we'll be happy to help.diff --git a/content/changelog/detailed-link-stats.mdx b/content/changelog/detailed-link-stats.mdxindex 47dc608965..95a42811cb 100644--- a/content/changelog/detailed-link-stats.mdx+++ b/content/changelog/detailed-link-stats.mdx@@ -8,7 +8,7 @@ author: "steventey"We've added "View All" buttons for the **Locations**, **Devices**, and **Referrer** sections on the Link Stats page.-When clicked, this opens up a modal that lets you explore all data points for a given section via a fuzzy search interface. Here's an [example](https://dub.sh/stats/github).+When clicked, this opens up a modal that lets you explore all data points for a given section via a fuzzy search interface. Here's an [example](https://dub.co/stats/github).This is helpful for sections like `City` that tend to have a lot of data points. Instead of scrolling through a long list, you can now search for a specific city.diff --git a/content/changelog/pass-url-parameters.mdx b/content/changelog/pass-url-parameters.mdxindex 402369cc9b..bafedbd186 100644--- a/content/changelog/pass-url-parameters.mdx+++ b/content/changelog/pass-url-parameters.mdx@@ -13,4 +13,4 @@ If there are any duplicate parameters, the parameter in the short link will overFor example:- [dub.sh/oss](https://dub.sh/oss) redirects to `vercel.com/oss?ref=dub`-- [dub.sh/oss?ref=dub.sh](https://dub.sh/oss?ref=dub.sh) redirects to `vercel.com/oss?ref=dub.sh`+- [dub.sh/oss?ref=dub.co](https://dub.sh/oss?ref=dub.co) redirects to `vercel.com/oss?ref=dub.co`diff --git a/content/changelog/sign-in-with-google.mdx b/content/changelog/sign-in-with-google.mdxindex af0ad2cc39..686ebe8622 100644--- a/content/changelog/sign-in-with-google.mdx+++ b/content/changelog/sign-in-with-google.mdx@@ -12,4 +12,4 @@ We're also deprecating email sign ups as they have been a constant source of spaIf you have an existing Dub account, you will still be able to sign in with email, but we recommend connecting your Google account to enable Google sign in moving forward.-We've also added a "Delete Account" feature to the [settings page](https://app.dub.sh/settings). You can now delete your Dub account and all associated data, if that's what you want to do.+We've also added a "Delete Account" feature to the [settings page](https://app.dub.co/settings). You can now delete your Dub account and all associated data, if that's what you want to do.diff --git a/content/help/how-to-add-custom-domain.mdx b/content/help/how-to-add-custom-domain.mdxindex ca12282c21..0f7a7bda82 100644--- a/content/help/how-to-add-custom-domain.mdx+++ b/content/help/how-to-add-custom-domain.mdx@@ -20,7 +20,7 @@ This guide will show you how to add a custom domain to Dub.Before you begin, you'll need the following:-- A Dub account. If you don't have one, you can [create one for free](https://app.dub.sh/register).+- A Dub account. If you don't have one, you can [create one for free](https://app.dub.co/register).- A domain name. If you don't have one, you can purchase one from any one of the following domain registrars:- [Namecheap](https://www.namecheap.com/)- [GoDaddy](https://www.godaddy.com/)@@ -31,11 +31,11 @@ Before you begin, you'll need the following:## Step 1: Add a custom domain-First, [log in](https://app.dub.sh/login) to your Dub account.+First, [log in](https://app.dub.co/login) to your Dub account.### Don't have a project yet?-1. Navigate to the [Dub Dashboard](https://app.dub.sh/) and click on the **Create project** button.+1. Navigate to the [Dub Dashboard](https://app.dub.co/) and click on the **Create project** button.2. Enter the domain you want to use under the "Shortlink domain" input and click **Create project**.<Image@@ -84,7 +84,7 @@ If you're adding an apex domain (e.g. `example.com`), you'll need to add an `A`If you're adding a subdomain (e.g. `go.example.com`), you'll need to add a `CNAME` record with the following values:- **Name**: `go` (or whatever subdomain you want to use)-- **Value**: `cname.dub.sh`+- **Value**: `cname.dub.co`- **TTL**: `86400` (or the highest value possible)<Note variant="warning">@@ -122,4 +122,4 @@ To do that, you'll need to add a TXT record with the following values:## How long do I have to wait for my domain to work?-Domain configuration can take anywhere between 1 to 24 hours to complete. If your domain still doesn't work after 24 hours, please [send us an email](mailto:[email protected]?subject=Domain%20not%20working) and we'll be happy to help you out.+Domain configuration can take anywhere between 1 to 24 hours to complete. If your domain still doesn't work after 24 hours, please [send us an email](mailto:[email protected]?subject=Domain%20not%20working) and we'll be happy to help you out.diff --git a/content/help/how-to-create-link.mdx b/content/help/how-to-create-link.mdxindex 234ebd433b..156753544a 100644--- a/content/help/how-to-create-link.mdx+++ b/content/help/how-to-create-link.mdx@@ -35,7 +35,7 @@ Here are the difference between the two options:| ---------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- || **Setup ease** | No setup required β you can start creating short links right away | You will need to [create a project](what-is-a-project#how-to-create-a-project) and [set up your custom domain](how-to-add-custom-domain) first before you can start creating short links. || **Branding** | Dub branding on the short link | Your own branding on the short link |-| **Dashboard location** | [app.dub.sh/links](https://app.dub.sh/links) | Can be found in the project select menu at the top menu bar |+| **Dashboard location** | [app.dub.co/links](https://app.dub.co/links) | Can be found in the project select menu at the top menu bar || **Link history** | 30 days | 30 days - Unlimited ([Pro plan](pro-plan)) || **Tags** | Unavailable | Can be used to organize links || **Link cloaking** | Unavailable | Can be used to mask destination URL with your short link |diff --git a/content/help/how-to-download-invoice.mdx b/content/help/how-to-download-invoice.mdxindex d76eee1039..0d470adaaf 100644--- a/content/help/how-to-download-invoice.mdx+++ b/content/help/how-to-download-invoice.mdx@@ -20,7 +20,7 @@ to build and improve Dub.Since we use [Stripe](https://stripe.com) to process payments, you can download your Dub invoice from Stripe by following the steps below:-1. From your project dashboard (e.g. `app.dub.sh/your-project`), click on the **Settings** tab.+1. From your project dashboard (e.g. `app.dub.co/your-project`), click on the **Settings** tab.2. On the left sidebar, click on **Billing**.3. Click on the **Manage Subscription** button to go to your Stripe dashboard.diff --git a/content/help/migrating-from-bitly.mdx b/content/help/migrating-from-bitly.mdxindex 54bcff567e..be9250d0a9 100644--- a/content/help/migrating-from-bitly.mdx+++ b/content/help/migrating-from-bitly.mdx@@ -105,4 +105,4 @@ Here's a list of attributes that are migrated from Bitly to Dub:5. Archived status6. Link title (as part of Dub's [Custom Social Media cards](how-to-create-link#custom-social-media-cards) feature)-If there are any other attributes that you'd like to see migrated, please [send us an email](mailto:[email protected]?subject=Bitly%20migration%20feedback) and let us know!+If there are any other attributes that you'd like to see migrated, please [send us an email](mailto:[email protected]?subject=Bitly%20migration%20feedback) and let us know!diff --git a/content/help/migrating-from-short.mdx b/content/help/migrating-from-short.mdxindex a24bf2728a..fb1318f77b 100644--- a/content/help/migrating-from-short.mdx+++ b/content/help/migrating-from-short.mdx@@ -127,4 +127,4 @@ Here are the attributes that are not migrated:4. Link redirect type (Dub uses 307 redirects for all links)5. Link cloaking (Dub only offers link cloaking for the root domain of your project)-If there are any attributes that you'd like to see migrated, please [send us an email](mailto:[email protected]?subject=Short.io%20migration%20feedback) and let us know!+If there are any attributes that you'd like to see migrated, please [send us an email](mailto:[email protected]?subject=Short.io%20migration%20feedback) and let us know!diff --git a/content/help/public-stats-pages.mdx b/content/help/public-stats-pages.mdxindex 73568c05fa..394fddf91c 100644--- a/content/help/public-stats-pages.mdx+++ b/content/help/public-stats-pages.mdx@@ -26,7 +26,7 @@ This allows you to share the stats for a given short link with clients or otherBehind the scenes, Dub creates a public page for your link's stats and automatically copies the link to your clipboard.-[Here's an example](https://dub.sh/stats/github).+[Here's an example](https://dub.co/stats/github).## How to disable a public stats pagediff --git a/content/help/what-is-a-project.mdx b/content/help/what-is-a-project.mdxindex 57c71a9470..5f43b4b1b1 100644--- a/content/help/what-is-a-project.mdx+++ b/content/help/what-is-a-project.mdx@@ -19,7 +19,7 @@ You can think of a Dub project as a "Team" βΒ you can [invite your teammates](## How to create a project-To create a project, go to the [Dub Dashboard](https://app.dub.sh/) and click on the **Create project** button.+To create a project, go to the [Dub Dashboard](https://app.dub.co/) and click on the **Create project** button.<Imagealt="The project creation modal in Dub"diff --git a/content/legal/privacy.mdx b/content/legal/privacy.mdxindex 258f0962d1..e59f2b59b3 100644--- a/content/legal/privacy.mdx+++ b/content/legal/privacy.mdx@@ -3,7 +3,7 @@ title: Privacy PolicyupdatedAt: 2023-05-29----Welcome to [Dub.sh](/) (the "Site"), hosted by Dub ("Dub", "we", "us", and/or "our"). Dub provides a platform for creating and managing short links (the "Services")β1β. We value your privacy and are dedicated to protecting your personal data. This Privacy Policy covers how we collect, handle, and disclose personal data on our Platform.+Welcome to [Dub.co](/) (the "Site"), hosted by Dub ("Dub", "we", "us", and/or "our"). Dub provides a platform for creating and managing short links (the "Services")β1β. We value your privacy and are dedicated to protecting your personal data. This Privacy Policy covers how we collect, handle, and disclose personal data on our Platform.If you have any questions, comments, or concerns regarding this Privacy Policy, our data practices, or would like to exercise your rights, do not hesitate to contact us.@@ -25,4 +25,4 @@ We use your information to provide our Services, to improve our Platform, to und## How To Contact Us-For privacy-related questions, please contact us at [email protected].+For privacy-related questions, please contact us at [email protected].diff --git a/content/legal/terms.mdx b/content/legal/terms.mdxindex 95154e15d9..10b44a56e0 100644--- a/content/legal/terms.mdx+++ b/content/legal/terms.mdx@@ -3,7 +3,7 @@ title: Terms of ServiceupdatedAt: 2023-05-29----Subject to these Terms of Service (this "Agreement"), [Dub.sh](/) ("Dub", "we", "us" and/or "our") provides access to Dub's cloud platform as a service (collectively, the "Services"). By using or accessing the Services, you acknowledge that you have read, understand, and agree to be bound by this Agreement.+Subject to these Terms of Service (this "Agreement"), [Dub.co](/) ("Dub", "we", "us" and/or "our") provides access to Dub's cloud platform as a service (collectively, the "Services"). By using or accessing the Services, you acknowledge that you have read, understand, and agree to be bound by this Agreement.If you are entering into this Agreement on behalf of a company, business or other legal entity, you represent that you have the authority to bind such entity to this Agreement, in which case the term "you" shall refer to such entity. If you do not have such authority, or if you do not agree with this Agreement, you must not accept this Agreement and may not use the Services.@@ -13,7 +13,7 @@ By signing up and using the services provided by Dub (referred to as the "Servic## 2. Description of Service-Dub provides an open-source link management tool for modern marketing teams to create, share, and track short links ("the Product"). The Product is accessible at dub.sh and other domains and subdomains controlled by Us (collectively, "the Website").+Dub provides an open-source link management tool for modern marketing teams to create, share, and track short links ("the Product"). The Product is accessible at dub.co and other domains and subdomains controlled by Us (collectively, "the Website").## 3. Fair Use@@ -27,7 +27,7 @@ You acknowledge and agree that the Service and its entire contents, features, an## 5. Shortlink Ownership-If you're using a default dub.sh link, we reserve the right to reclaim the shortlink if needed, particularly if it is necessary for brand compliance, to prevent confusion among users, or to maintain the integrity and reputation of our Service.+If you're using a default `dub.sh` link, we reserve the right to reclaim the shortlink if needed, particularly if it is necessary for brand compliance, to prevent confusion among users, or to maintain the integrity and reputation of our Service.## 6. Changes to these Terms@@ -35,7 +35,7 @@ We reserve the right to revise and update these Terms of Service from time to ti## 7. Contact Information-Questions or comments about the Website or these Terms of Service may be directed to our support team at [email protected].+Questions or comments about the Website or these Terms of Service may be directed to our support team at [email protected].## 8. Disclaimer of Warrantiesdiff --git a/contentlayer.config.ts b/contentlayer.config.tsindex 78a7cc0114..0bcfb1a321 100644--- a/contentlayer.config.ts+++ b/contentlayer.config.ts@@ -207,7 +207,7 @@ const computedFields = (type: "blog" | "changelog" | "help" | "legal") => ({dateModified: doc.publishedAt,description: doc.summary,image: doc.image,- url: `https://dub.sh/${doc._raw.flattenedPath}`,+ url: `https://dub.co/${doc._raw.flattenedPath}`,author: {"@type": "Person",name: doc.author,diff --git a/emails/clicks-summary.tsx b/emails/clicks-summary.tsxindex f15e280c98..c6f9384d02 100644--- a/emails/clicks-summary.tsx+++ b/emails/clicks-summary.tsx@@ -147,7 +147,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.sh/${projectSlug}`}+ href={`https://app.dub.co/${projectSlug}`}>Start creating links</Link>@@ -161,7 +161,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.sh/${projectSlug}?sort=clicks`}+ href={`https://app.dub.co/${projectSlug}?sort=clicks`}>View my stats</Link>diff --git a/emails/domain-deleted.tsx b/emails/domain-deleted.tsxindex e05a8707a1..4b6b127cfe 100644--- a/emails/domain-deleted.tsx+++ b/emails/domain-deleted.tsx@@ -47,7 +47,7 @@ export default function DomainDeleted({Your domain <code className="text-purple-600">{domain}</code> foryour Dub project{" "}<Link- href={`https://app.dub.sh/${projectSlug}`}+ href={`https://app.dub.co/${projectSlug}`}className="font-medium text-blue-600 no-underline">{projectSlug}β@@ -62,7 +62,7 @@ export default function DomainDeleted({<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.sh/${projectSlug}/domains`}+ href={`https://app.dub.co/${projectSlug}/domains`}>Add a domain</Link>diff --git a/emails/index.ts b/emails/index.tsindex 54bf56b5f6..e7099d077f 100644--- a/emails/index.ts+++ b/emails/index.ts@@ -27,8 +27,8 @@ export const sendEmail = async ({}return resend.emails.send({from: marketing- ? "Steven from Dub <[email protected]>"- : "Dub <[email protected]>",+ ? "Steven from Dub <[email protected]>"+ : "Dub <[email protected]>",to: test ? "[email protected]" : email,subject,react,diff --git a/emails/invalid-domain.tsx b/emails/invalid-domain.tsxindex 096b9f5ded..56b8eb6ed6 100644--- a/emails/invalid-domain.tsx+++ b/emails/invalid-domain.tsx@@ -49,7 +49,7 @@ export default function InvalidDomain({Your domain <code className="text-purple-600">{domain}</code> foryour Dub project{" "}<Link- href={`https://app.dub.sh/${projectSlug}`}+ href={`https://app.dub.co/${projectSlug}`}className="font-medium text-blue-600 no-underline">{projectSlug}β@@ -64,7 +64,7 @@ export default function InvalidDomain({<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.sh/${projectSlug}/domains`}+ href={`https://app.dub.co/${projectSlug}/domains`}>Configure domain</Link>@@ -72,7 +72,7 @@ export default function InvalidDomain({<Text className="text-sm leading-6 text-black">If you do not want to keep this domain on Dub, you can{" "}<Link- href={`https://app.dub.sh/${projectSlug}/domains`}+ href={`https://app.dub.co/${projectSlug}/domains`}className="font-medium text-blue-600 no-underline">delete itdiff --git a/emails/links-imported.tsx b/emails/links-imported.tsxindex 7a733a52ea..2662427a73 100644--- a/emails/links-imported.tsx+++ b/emails/links-imported.tsx@@ -91,7 +91,7 @@ export default function LinksImported({</strong>{" "}from {provider} into your Dub project,{" "}<Link- href={`https://app.dub.sh/${projectSlug}`}+ href={`https://app.dub.co/${projectSlug}`}className="font-medium text-blue-600 no-underline">{projectName}β@@ -130,7 +130,7 @@ export default function LinksImported({<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.sh/${projectSlug}`}+ href={`https://app.dub.co/${projectSlug}`}>View {Intl.NumberFormat("en-us").format(count - 5)} more links</Link>@@ -139,7 +139,7 @@ export default function LinksImported({<Text className="text-sm leading-6 text-black">If you haven't already{" "}<Link- href="https://dub.sh/help/article/how-to-add-custom-domain#step-2-configure-your-domain"+ href="https://dub.co/help/article/how-to-add-custom-domain#step-2-configure-your-domain"className="font-medium text-blue-600 no-underline">configured your domain{domains.length > 1 ? "s" : ""}diff --git a/emails/usage-exceeded.tsx b/emails/usage-exceeded.tsxindex 1f931cc691..722ad046ea 100644--- a/emails/usage-exceeded.tsx+++ b/emails/usage-exceeded.tsx@@ -69,7 +69,7 @@ export default function UsageExceeded({<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.sh/${slug}/settings/billing`}+ href={`https://app.dub.co/${slug}/settings/billing`}>Upgrade my plan</Link>diff --git a/emails/welcome-email.tsx b/emails/welcome-email.tsxindex 55eb14e5db..dbf7f2140a 100644--- a/emails/welcome-email.tsx+++ b/emails/welcome-email.tsx@@ -58,7 +58,7 @@ export default function WelcomeEmail({<Text className="ml-1 text-sm leading-4 text-black">β Create a{" "}<Link- href="https://app.dub.sh/links"+ href="https://app.dub.co/links"className="font-medium text-blue-600 no-underline">Dub.sh short link@@ -67,7 +67,7 @@ export default function WelcomeEmail({<Text className="ml-1 text-sm leading-4 text-black">β Create a{" "}<Link- href="https://app.dub.sh"+ href="https://app.dub.co"className="font-medium text-blue-600 no-underline">new projectdiff --git a/lib/api/domains.ts b/lib/api/domains.tsindex 1a33539631..a87a068799 100644--- a/lib/api/domains.ts+++ b/lib/api/domains.ts@@ -11,7 +11,9 @@ export const validateDomain = async (return "Missing domain";}const validDomain =- validDomainRegex.test(domain) && !domain.endsWith(".dub.sh");+ validDomainRegex.test(domain) &&+ !domain.endsWith(".dub.co") &&+ !domain.endsWith(".dub.sh");if (!validDomain) {return "Invalid domain";diff --git a/lib/constants/index.ts b/lib/constants/index.tsindex 025238cbdb..a98d40bc51 100644--- a/lib/constants/index.ts+++ b/lib/constants/index.ts@@ -42,65 +42,71 @@ export const PAGINATION_LIMIT = 100;*/export const HOME_HOSTNAMES = new Set([+ "dub.co","home.localhost:8888","localhost",- "dub.sh",]);+export const isHomeHostname = (domain: string) => {+ return HOME_HOSTNAMES.has(domain) || domain.endsWith(".vercel.app");+};+export const HOME_DOMAIN =process.env.NEXT_PUBLIC_VERCEL_ENV === "production"- ? "https://dub.sh"+ ? "https://dub.co": process.env.NEXT_PUBLIC_VERCEL_ENV === "preview"- ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`+ ? // ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`+ "https://dub.co": "http://home.localhost:8888";export const APP_HOSTNAMES = new Set([+ "app.dub.co",+ "preview.dub.co","localhost:8888","localhost",- "app.dub.sh",- "app.dub.co",- "preview.dub.sh",]);export const APP_DOMAIN =process.env.NEXT_PUBLIC_VERCEL_ENV === "production"- ? "https://app.dub.sh"+ ? "https://app.dub.co": process.env.NEXT_PUBLIC_VERCEL_ENV === "preview"- ? "https://preview.dub.sh"+ ? // ? "https://preview.dub.co"+ "https://app.dub.co": "http://localhost:8888";export const APP_DOMAIN_WITH_NGROK =process.env.NEXT_PUBLIC_VERCEL_ENV === "production"- ? "https://app.dub.sh"+ ? "https://app.dub.co": process.env.NEXT_PUBLIC_VERCEL_ENV === "preview"- ? "https://preview.dub.sh"+ ? "https://preview.dub.co": process.env.NGROK_URL;-export const API_HOSTNAMES = new Set([- "api.dub.co",- "api.dub.sh",- "api.localhost:8888",+export const API_HOSTNAMES = new Set(["api.dub.co", "api.localhost:8888"]);++export const ADMIN_HOSTNAMES = new Set([+ "admin.dub.co",+ "admin.localhost:8888",]);export const DEFAULT_REDIRECTS = {- home: "https://dub.sh",- dub: "https://dub.sh",- signin: "https://app.dub.sh/login",- login: "https://app.dub.sh/login",- register: "https://app.dub.sh/register",- signup: "https://app.dub.sh/register",- app: "https://app.dub.sh",- dashboard: "https://app.dub.sh",- links: "https://app.dub.sh/links",- settings: "https://app.dub.sh/settings",- welcome: "https://app.dub.sh/welcome",+ home: "https://dub.co",+ dub: "https://dub.co",+ signin: "https://app.dub.co/login",+ login: "https://app.dub.co/login",+ register: "https://app.dub.co/register",+ signup: "https://app.dub.co/register",+ app: "https://app.dub.co",+ dashboard: "https://app.dub.co",+ links: "https://app.dub.co/links",+ settings: "https://app.dub.co/settings",+ welcome: "https://app.dub.co/welcome",discord: "https://twitter.com/dubdotsh", // placeholder for now- tags: "https://dub.sh/help/how-to-use-tags",+ tags: "https://dub.co/help/how-to-use-tags",};export const DUB_HEADERS = {headers: {- "x-powered-by": "Dub.sh - Link management for modern marketing teams",+ "x-powered-by": "dub.co - Link management for modern marketing teams",},};diff --git a/lib/middleware/root.ts b/lib/middleware/root.tsindex bf815bd290..a1dd4a6342 100644--- a/lib/middleware/root.ts+++ b/lib/middleware/root.ts@@ -3,8 +3,7 @@ import { redis } from "#/lib/upstash";import { recordClick } from "#/lib/tinybird";import { parse } from "./utils";import { RootDomainProps } from "../types";-import { isHomeHostname } from "../utils";-import { DUB_HEADERS } from "../constants";+import { DUB_HEADERS } from "#/lib/constants";export default async function RootMiddleware(req: NextRequest,@@ -16,22 +15,19 @@ export default async function RootMiddleware(return NextResponse.next();}- if (isHomeHostname(domain)) {- return NextResponse.rewrite(new URL(`/dub.sh`, req.url));- } else {- ev.waitUntil(recordClick(domain, req)); // record clicks on root page (if domain is not dub.sh)+ // record clicks on root page+ ev.waitUntil(recordClick(domain, req));- const { target, rewrite } =- (await redis.get<RootDomainProps>(`root:${domain}`)) || {};- if (target) {- if (rewrite) {- return NextResponse.rewrite(target);- } else {- return NextResponse.redirect(target, DUB_HEADERS);- }+ const { target, rewrite } =+ (await redis.get<RootDomainProps>(`root:${domain}`)) || {};+ if (target) {+ if (rewrite) {+ return NextResponse.rewrite(target);} else {- // rewrite to root page unless the user defines a site to redirect to- return NextResponse.rewrite(new URL(`/${domain}`, req.url));+ return NextResponse.redirect(target, DUB_HEADERS);}+ } else {+ // rewrite to root page unless the user defines a site to redirect to+ return NextResponse.rewrite(new URL(`/${domain}`, req.url));}}diff --git a/lib/middleware/utils.ts b/lib/middleware/utils.tsindex 0f481b2b47..44ef669234 100644--- a/lib/middleware/utils.ts+++ b/lib/middleware/utils.ts@@ -1,12 +1,10 @@import { NextRequest } from "next/server";-import { isHomeHostname } from "../utils";export const parse = (req: NextRequest) => {let domain = req.headers.get("host") as string;domain = domain.replace("www.", ""); // remove www. from domain- if (isHomeHostname(domain)) domain = "dub.sh"; // if domain is a home hostname, set it to dub.sh- // path is the path of the URL (e.g. dub.sh/stats/github -> /stats/github)+ // path is the path of the URL (e.g. dub.co/stats/github -> /stats/github)const path = req.nextUrl.pathname;// fullPath is the full URL path (along with search params)@@ -16,7 +14,7 @@ export const parse = (req: NextRequest) => {}`;// Here, we are using decodeURIComponent to handle foreign languages like Hebrew- const key = decodeURIComponent(path.split("/")[1]); // key is the first part of the path (e.g. dub.sh/stats/github -> stats)+ const key = decodeURIComponent(path.split("/")[1]); // key is the first part of the path (e.g. dub.co/stats/github -> stats)const fullKey = decodeURIComponent(path.slice(1)); // fullKey is the full path without the first slash (to account for multi-level subpaths, e.g. dub.sh/github/repo -> github/repo)return { domain, path, fullPath, key, fullKey };diff --git a/lib/stats.ts b/lib/stats.tsindex 8bbc7e1bc1..5dcec3d0a5 100644--- a/lib/stats.ts+++ b/lib/stats.ts@@ -51,7 +51,7 @@ export const intervalData = {granularity: "month",},all: {- // Dub.sh founding date+ // Dub.co founding datestartDate: new Date("2022-09-22"),granularity: "month",},diff --git a/lib/stripe/index.ts b/lib/stripe/index.tsindex 32eaf7508e..a96961becc 100644--- a/lib/stripe/index.ts+++ b/lib/stripe/index.ts@@ -5,7 +5,7 @@ export const stripe = new Stripe({apiVersion: "2022-11-15",appInfo: {- name: "Dub.sh",+ name: "Dub.co",version: "0.1.0",},},diff --git a/lib/swr-app/use-domains.ts b/lib/swr-app/use-domains.tsindex 295bbe98b9..6ec9cf3ec4 100644--- a/lib/swr-app/use-domains.ts+++ b/lib/swr-app/use-domains.ts@@ -25,7 +25,7 @@ export default function useDomains({ domain }: { domain?: string } = {}) {slug: "dub.sh",verified: true,primary: true,- target: "https://dub.sh",+ target: "https://dub.co",type: "redirect",},] as DomainProps[]);diff --git a/lib/swr/use-domains.ts b/lib/swr/use-domains.tsindex b93167349e..6e696fc5d2 100644--- a/lib/swr/use-domains.ts+++ b/lib/swr/use-domains.ts@@ -28,7 +28,7 @@ export default function useDomains({ domain }: { domain?: string } = {}) {slug: "dub.sh",verified: true,primary: true,- target: "https://dub.sh",+ target: "https://dub.co",type: "redirect",},] as DomainProps[]);diff --git a/lib/utils.ts b/lib/utils.tsindex 466ae3a4a0..81534cb131 100644--- a/lib/utils.ts+++ b/lib/utils.ts@@ -20,7 +20,7 @@ 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.",- image = "https://dub.sh/_static/thumbnail.png",+ image = "https://dub.co/_static/thumbnail.png",icons = "/favicon.ico",}: {title?: string;@@ -270,7 +270,7 @@ export const getApexDomain = (url: string) => {// otherwise, it's a subdomain (e.g. dub.vercel.app), so we return the last 2 partsreturn parts.slice(-2).join(".");}- // if it's a normal domain (e.g. dub.sh), we return the domain+ // if it's a normal domain (e.g. dub.co), we return the domainreturn domain;};@@ -283,10 +283,6 @@ export const isValidUrl = (url: string) => {}};-export const isHomeHostname = (domain: string) => {- return HOME_HOSTNAMES.has(domain) || domain.endsWith(".vercel.app");-};-export const getUrlFromString = (str: string) => {if (isValidUrl(str)) return str;try {diff --git a/middleware.ts b/middleware.tsindex 37cdb90af7..80befefdc7 100644--- a/middleware.ts+++ b/middleware.ts@@ -1,8 +1,10 @@import { NextFetchEvent, NextRequest, NextResponse } from "next/server";import {+ ADMIN_HOSTNAMES,API_HOSTNAMES,APP_HOSTNAMES,DEFAULT_REDIRECTS,+ isHomeHostname,} from "#/lib/constants";import {AppMiddleware,@@ -11,7 +13,6 @@ import {RootMiddleware,} from "#/lib/middleware";import { parse } from "#/lib/middleware/utils";-import { isReservedKey } from "#/lib/edge-config";import AdminMiddleware from "./lib/middleware/admin";export const config = {@@ -32,6 +33,15 @@ export const config = {export default async function middleware(req: NextRequest, ev: NextFetchEvent) {const { domain, path, key } = parse(req);+ if (isHomeHostname(domain)) {+ return NextResponse.rewrite(new URL(`/dub.co${path}`, req.url));+ }++ // for public stats pages (e.g. dub.co/stats/github, vercel.fyi/stats/roomGPT)+ if (key === "stats") {+ return NextResponse.rewrite(new URL(`/${domain}${path}`, req.url));+ }+// for Appif (APP_HOSTNAMES.has(domain)) {return AppMiddleware(req);@@ -43,27 +53,17 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {}// for Admin- if (domain === "admin.dub.sh" || domain === "admin.localhost:8888") {+ if (ADMIN_HOSTNAMES.has(domain)) {return AdminMiddleware(req);}- // for public stats pages (e.g. dub.sh/stats/github)- if (key === "stats") {- return NextResponse.rewrite(new URL(`/${domain}${path}`, req.url));- }-- // for root pages (e.g. dub.sh, vercel.fyi, etc.)+ // for root pages (e.g. dub.co, vercel.fyi, etc.)if (key.length === 0) {return RootMiddleware(req, ev);}- if (domain === "dub.sh") {- if (DEFAULT_REDIRECTS[key]) {- return NextResponse.redirect(DEFAULT_REDIRECTS[key]);- }- if (await isReservedKey(key)) {- return NextResponse.rewrite(new URL(`/dub.sh${path}`, req.url));- }+ if (domain === "dub.sh" && DEFAULT_REDIRECTS[key]) {+ return NextResponse.redirect(DEFAULT_REDIRECTS[key]);}return LinkMiddleware(req, ev);diff --git a/next.config.js b/next.config.jsindex 1044585538..7759d0a27b 100644--- a/next.config.js+++ b/next.config.js@@ -1,5 +1,15 @@const { withContentlayer } = require("next-contentlayer");+const REDIRECT_SEGMENTS = [+ "pricing",+ "blog",+ "help",+ "changelog",+ "metatags",+ "stats",+ "_static",+];+/** @type {import('next').NextConfig} */const nextConfig = {reactStrictMode: false,@@ -66,6 +76,54 @@ const nextConfig = {destination: "https://app.dub.co/:path*",permanent: true,},+ {+ source: "/",+ has: [+ {+ type: "host",+ value: "dub.sh",+ },+ ],+ destination: "https://dub.co",+ permanent: true,+ },+ ...REDIRECT_SEGMENTS.map(+ (segment) => (+ {+ source: `/${segment}`,+ has: [+ {+ type: "host",+ value: "dub.sh",+ },+ ],+ destination: `https://dub.co/${segment}`,+ permanent: true,+ },+ {+ source: `/${segment}/:path*`,+ has: [+ {+ type: "host",+ value: "dub.sh",+ },+ ],+ destination: `https://dub.co/${segment}/:path*`,+ permanent: true,+ }+ ),+ ),+ {+ source: "/",+ has: [+ {+ type: "host",+ value: "preview.dub.sh",+ },+ ],+ destination: "https://preview.dub.co",+ permanent: true,+ },];},};diff --git a/pages/api/auth/[...nextauth].tsx b/pages/api/auth/[...nextauth].tsxindex f1b4ad133d..fed46f7c2d 100644--- a/pages/api/auth/[...nextauth].tsx+++ b/pages/api/auth/[...nextauth].tsx@@ -163,7 +163,7 @@ 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.sh" : undefined,+ domain: VERCEL_DEPLOYMENT ? ".dub.co" : undefined,secure: VERCEL_DEPLOYMENT,},},@@ -298,7 +298,7 @@ export const authOptions: NextAuthOptions = {new Date(user.createdAt).getTime() > Date.now() - 10000) {sendEmail({- subject: "Welcome to Dub.sh!",+ subject: "Welcome to Dub.co!",email,react: WelcomeEmail({email,diff --git a/pages/api/edge/links/[key]/stats/[endpoint].ts b/pages/api/edge/links/[key]/stats/[endpoint].tsindex 24cc015b4b..adc0389670 100644--- a/pages/api/edge/links/[key]/stats/[endpoint].ts+++ b/pages/api/edge/links/[key]/stats/[endpoint].ts@@ -1,9 +1,8 @@import type { NextRequest } from "next/server";import { getStats } from "#/lib/stats";import { getLinkViaEdge } from "#/lib/planetscale";-import { isHomeHostname } from "#/lib/utils";import { ipAddress } from "@vercel/edge";-import { LOCALHOST_IP } from "#/lib/constants";+import { LOCALHOST_IP, isHomeHostname } from "#/lib/constants";import { ratelimit } from "#/lib/upstash";import { isBlacklistedReferrer } from "#/lib/edge-config";diff --git a/pages/api/og/changelog.tsx b/pages/api/og/changelog.tsxindex d8f1d27244..0106202b5c 100644--- a/pages/api/og/changelog.tsx+++ b/pages/api/og/changelog.tsx@@ -40,7 +40,7 @@ export default async function handler() {}}><img- src="https://dub.sh/_static/logotype.png"+ src="https://dub.co/_static/logotype.png"style={{height: "40px",position: "absolute",diff --git a/pages/api/og/stats.tsx b/pages/api/og/stats.tsxindex d1a9ae6009..3f89d745fe 100644--- a/pages/api/og/stats.tsx+++ b/pages/api/og/stats.tsx@@ -51,7 +51,7 @@ export default async function handler(req: NextRequest) {flexDirection: "column",alignItems: "center",backgroundColor: "white",- backgroundImage: `url(https://dub.sh/_static/background.png)`,+ backgroundImage: `url(https://dub.co/_static/background.png)`,}}><imgdiff --git a/pages/api/site/feedback.ts b/pages/api/site/feedback.tsindex ec12251754..7972dc28b0 100644--- a/pages/api/site/feedback.ts+++ b/pages/api/site/feedback.ts@@ -24,8 +24,8 @@ export default async function handler(}const response = await resend.emails.send({- from: "[email protected]",- to: ["[email protected]"],+ from: "[email protected]",+ to: ["[email protected]"],...(email && { reply_to: email }),subject: "π New Feedback Received!",react: FeedbackEmail({