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.

missed a spot

Steven Teyda02c1469026
diff --git a/apps/web/lib/middleware/utils/parse.ts b/apps/web/lib/middleware/utils/parse.ts
index 97c61e7b46..0d92f413c3 100644
--- a/apps/web/lib/middleware/utils/parse.ts
+++ b/apps/web/lib/middleware/utils/parse.ts
@@ -1,3 +1,4 @@
+import { SHORT_DOMAIN } from "@dub/utils";
import { NextRequest } from "next/server";
export const parse = (req: NextRequest) => {
@@ -6,7 +7,7 @@ export const parse = (req: NextRequest) => {
domain = domain.replace("www.", "").toLowerCase();
if (domain === "dub.localhost:8888" || domain.endsWith(".vercel.app")) {
// for local development and preview URLs
- domain = "link.steventey.com";
+ domain = SHORT_DOMAIN;
}
// path is the path of the URL (e.g. dub.sh/stats/github -> /stats/github)