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.

fix redirect status code

Steven Tey99b29beb07b2
diff --git a/lib/middleware/api.ts b/lib/middleware/api.ts
index d1edb37e4d..4e64cc1cab 100644
--- a/lib/middleware/api.ts
+++ b/lib/middleware/api.ts
@@ -6,7 +6,7 @@ export default async function ApiMiddleware(req: NextRequest) {
const { fullPath, domain } = parse(req);
if (fullPath === "/" && domain === "api.dub.co") {
return NextResponse.redirect(`${HOME_DOMAIN}/help/article/dub-api`, {
- status: 301,
+ status: 307,
});
// special case for metatags