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 api.dub.co redirect

Steven Tey6afb8c28417a
diff --git a/apps/web/lib/middleware/api.ts b/apps/web/lib/middleware/api.ts
index a298e6049e..97edd41a19 100644
--- a/apps/web/lib/middleware/api.ts
+++ b/apps/web/lib/middleware/api.ts
@@ -5,7 +5,7 @@ import { NextRequest, NextResponse } from "next/server";
export default function ApiMiddleware(req: NextRequest) {
const { path, fullPath, domain } = parse(req);
if (fullPath === "/" && domain === "api.dub.co") {
- return NextResponse.redirect(`${HOME_DOMAIN}/help/article/dub-api`, {
+ return NextResponse.redirect(`${HOME_DOMAIN}/docs/api-reference/introduction`, {
status: 307,
});