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.

dub.sh → dub.co

Steven Tey8b6741a24fe7
diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts
index 93a307a112..92f83c87d4 100644
--- a/apps/web/middleware.ts
+++ b/apps/web/middleware.ts
@@ -42,7 +42,7 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
return ApiMiddleware(req);
}
- // for public stats pages (e.g. vercel.fyi/stats/roomGPT)
+ // for public stats pages (e.g. dub.co/stats/github)
if (key === "stats") {
return NextResponse.rewrite(new URL(`/${domain}${path}`, req.url));
}
@@ -56,7 +56,7 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
return AdminMiddleware(req);
}
- // for root pages (e.g. dub.co, vercel.fyi, etc.)
+ // for root pages (e.g. dub.sh, chatg.pt, etc.)
if (key.length === 0) {
return RootMiddleware(req, ev);
}
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 8c81dda268..b5c814bdb5 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -101,18 +101,6 @@ module.exports = {
permanent: true,
statusCode: 301,
},
- {
- source: "/",
- has: [
- {
- type: "host",
- value: "dub.sh",
- },
- ],
- destination: "https://dub.co",
- permanent: true,
- statusCode: 301,
- },
...REDIRECT_SEGMENTS.map(
(segment) => (
{