The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
remove stats redirect
Steven Teyac761ee39f72
diff --git a/apps/web/middleware.ts b/apps/web/middleware.tsindex beec747fec..9bca551a93 100644--- a/apps/web/middleware.ts+++ b/apps/web/middleware.ts@@ -42,8 +42,8 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {return ApiMiddleware(req);}- // for public stats pages (e.g. dub.co/stats/try)- if (key === "stats") {+ // for public stats pages (e.g. dub.sh/stats/try)+ if (path.startsWith("/stats/")) {return NextResponse.rewrite(new URL(`/${domain}${path}`, req.url));}diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex cfb9e0ff81..bf2a3d70c2 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -4,7 +4,6 @@ const REDIRECT_SEGMENTS = ["help","changelog","tools",- "stats","_static",];