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 root.ts

Steven Tey5499d6238c54
diff --git a/lib/middleware/root.ts b/lib/middleware/root.ts
index d86c2fcb1e..28673c4c6a 100644
--- a/lib/middleware/root.ts
+++ b/lib/middleware/root.ts
@@ -29,8 +29,8 @@ export default async function RootMiddleware(
return NextResponse.redirect(target);
}
} else {
- // rewrite to a /placeholder page unless the user defines a site to redirect to
- return NextResponse.rewrite("https://dub.sh");
+ // rewrite to root page unless the user defines a site to redirect to
+ return NextResponse.next();
}
}
}