Skip to content

armgit / dub

Public Imported from GitHub
0

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

update dub.sh → d.to

Steven Teye7500d493eab
diff --git a/apps/docs/introduction.mdx b/apps/docs/introduction.mdx
index 9e5ee06e9f..31acad01df 100644
--- a/apps/docs/introduction.mdx
+++ b/apps/docs/introduction.mdx
@@ -22,7 +22,7 @@ Here are some of the features that Dub offers:
## Tech Stack
-Dub's codebase is [fully open-source](https://dub.sh/github) and is built on top of the following technologies:
+Dub's codebase is [fully open-source](https://d.to/github) and is built on top of the following technologies:
- [Next.js](https://nextjs.org/) – framework
- [TypeScript](https://www.typescriptlang.org/) – language
diff --git a/apps/docs/local-development.mdx b/apps/docs/local-development.mdx
index d821797de5..8993593a1f 100644
--- a/apps/docs/local-development.mdx
+++ b/apps/docs/local-development.mdx
@@ -72,7 +72,7 @@ To run Dub.co locally, you'll need to set up the following:
<Step title="Clone the repo">
-First, clone the [Dub.co repo](https://dub.sh/github) into a public GitHub repository.
+First, clone the [Dub.co repo](https://d.to/github) into a public GitHub repository.
```bash
git clone https://github.com/dubinc/dub.git
diff --git a/apps/docs/self-hosting.mdx b/apps/docs/self-hosting.mdx
index 3a0c3eb7e8..4f0a5cb880 100644
--- a/apps/docs/self-hosting.mdx
+++ b/apps/docs/self-hosting.mdx
@@ -28,7 +28,7 @@ In this guide, we'll use `acme.com` as a placeholder for your custom domain, and
<Step title="Clone the repo">
-First, clone the [Dub repo](https://dub.sh/github) into a public GitHub repository. If you are planning to distribute the code, make sure to keep the source code public to comply with our [AGPLv3 license](https://dub.sh/license).
+First, clone the [Dub repo](https://d.to/github) into a public GitHub repository. If you are planning to distribute the code, make sure to keep the source code public to comply with our [AGPLv3 license](https://d.to/license).
```bash
git clone https://github.com/dubinc/dub.git
diff --git a/apps/web/app/api/route.ts b/apps/web/app/api/route.ts
index f96dd31c8d..2cb98c79d9 100644
--- a/apps/web/app/api/route.ts
+++ b/apps/web/app/api/route.ts
@@ -248,24 +248,24 @@ export function GET(): NextResponse<OpenAPIV3.Document> {
{
name: "domain",
description:
- "The domain of the link to retrieve. E.g. for `dub.sh/github`, the domain is `dub.sh`.",
+ "The domain of the link to retrieve. E.g. for `d.to/github`, the domain is `dub.sh`.",
in: "query",
required: true,
schema: {
description:
- "The domain of the link to retrieve. E.g. for `dub.sh/github`, the domain is `dub.sh`.",
+ "The domain of the link to retrieve. E.g. for `d.to/github`, the domain is `dub.sh`.",
type: "string",
},
},
{
name: "key",
description:
- "The key of the link to retrieve. E.g. for `dub.sh/github`, the key is `github`.",
+ "The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`.",
in: "query",
required: true,
schema: {
description:
- "The key of the link to retrieve. E.g. for `dub.sh/github`, the key is `github`.",
+ "The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`.",
type: "string",
},
},
@@ -826,7 +826,7 @@ export function GET(): NextResponse<OpenAPIV3.Document> {
geo: {
type: "object",
description:
- "Geo targeting information for the short link in JSON format {[COUNTRY]: `https://example.com` }. Learn more: `https://dub.sh/geo`",
+ "Geo targeting information for the short link in JSON format {[COUNTRY]: `https://example.com` }. Learn more: `https://d.to/geo`",
additionalProperties: {
type: "string",
format: "uri",
@@ -871,13 +871,13 @@ export function GET(): NextResponse<OpenAPIV3.Document> {
shortLink: {
type: "string",
description:
- "The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).",
+ "The full URL of the short link, including the https protocol (e.g. `https://d.to/try`).",
readOnly: true,
},
qrCode: {
type: "string",
description:
- "The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).",
+ "The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://d.to/try`).",
readOnly: true,
},
utm_source: {
diff --git a/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx
index 344f9d5e7c..88fbf6e2fa 100644
--- a/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx
@@ -33,7 +33,7 @@ export default function TokensPageClient() {
placeholder: "Jetpack API Key",
maxLength: 140,
}}
- helpText="<a href='https://dub.sh/api' target='_blank'>Learn more about Dub's API.</a>"
+ helpText="<a href='https://d.to/api' target='_blank'>Learn more about Dub's API.</a>"
buttonText="Submit"
handleSubmit={(data) =>
fetch("/api/user/tokens", {
diff --git a/apps/web/emails/upgrade-email.tsx b/apps/web/emails/upgrade-email.tsx
index 595bffe5aa..12cc533d93 100644
--- a/apps/web/emails/upgrade-email.tsx
+++ b/apps/web/emails/upgrade-email.tsx
@@ -67,14 +67,14 @@ export default function UpgradeEmail({
<Text className="text-sm leading-6 text-black">
As you might already know, we are a{" "}
<Link
- href="https://dub.sh/mission"
+ href="https://d.to/mission"
className="font-medium text-blue-600 no-underline"
>
100% bootstrapped
</Link>{" "}
and{" "}
<Link
- href="https://dub.sh/github"
+ href="https://d.to/github"
className="font-medium text-blue-600 no-underline"
>
open-source
diff --git a/apps/web/lib/middleware/utils.ts b/apps/web/lib/middleware/utils.ts
index 190eb5fee5..b3e37c91a7 100644
--- a/apps/web/lib/middleware/utils.ts
+++ b/apps/web/lib/middleware/utils.ts
@@ -20,13 +20,13 @@ 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.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)
+ const fullKey = decodeURIComponent(path.slice(1)); // fullKey is the full path without the first slash (to account for multi-level subpaths, e.g. d.to/github/repo -> github/repo)
return { domain, path, fullPath, key, fullKey };
};
export const getFinalUrl = (url: string, { req }: { req: NextRequest }) => {
- // query is the query string (e.g. dub.sh/github?utm_source=twitter -> ?utm_source=twitter)
+ // query is the query string (e.g. d.to/github?utm_source=twitter -> ?utm_source=twitter)
const searchParams = req.nextUrl.searchParams;
// get the query params of the target url
diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prisma
index e3cb051f7f..b32a26c4c8 100644
--- a/apps/web/prisma/schema.prisma
+++ b/apps/web/prisma/schema.prisma
@@ -192,7 +192,7 @@ model Link {
proxy 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.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)
+ image String? @db.LongText // OG image for the link (e.g. https://d.to/og)
// UTM parameters
utm_source String? // UTM source for the link (e.g. youtube.com)
diff --git a/apps/web/ui/analytics/index.tsx b/apps/web/ui/analytics/index.tsx
index fd6f62ff2d..ea8e28e6b3 100644
--- a/apps/web/ui/analytics/index.tsx
+++ b/apps/web/ui/analytics/index.tsx
@@ -1,7 +1,7 @@
"use client";
/*
This Stats component lives in 3 different places:
- 1. Project link page, e.g. app.dub.co/dub/dub.sh/github
+ 1. Project link page, e.g. app.dub.co/dub/d.to/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/weathergpt