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.

remove weird hack

Steven Teyf277fae421cf
diff --git a/apps/web/lib/middleware/utils.ts b/apps/web/lib/middleware/utils.ts
index a8c63842a5..f790f071ef 100644
--- a/apps/web/lib/middleware/utils.ts
+++ b/apps/web/lib/middleware/utils.ts
@@ -11,12 +11,6 @@ export const parse = (req: NextRequest) => {
// path is the path of the URL (e.g. dub.co/stats/github -> /stats/github)
let path = req.nextUrl.pathname;
- // special case for dub.sh/___dub_check/ (for checking if dub.sh links are working)
- if (path.startsWith("/___dub_check/")) {
- domain = "dub.sh";
- path = path.replace("/___dub_check/", "/");
- }
-
// fullPath is the full URL path (along with search params)
const searchParams = req.nextUrl.searchParams.toString();
const fullPath = `${path}${