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 async for API

Steven Tey67c6ccb902c5
diff --git a/lib/middleware/api.ts b/lib/middleware/api.ts
index 4e64cc1cab..ce97945dd8 100644
--- a/lib/middleware/api.ts
+++ b/lib/middleware/api.ts
@@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from "next/server";
import { parse } from "#/lib/middleware/utils";
import { HOME_DOMAIN } from "../constants";
-export default async function ApiMiddleware(req: NextRequest) {
+export default function ApiMiddleware(req: NextRequest) {
const { fullPath, domain } = parse(req);
if (fullPath === "/" && domain === "api.dub.co") {
return NextResponse.redirect(`${HOME_DOMAIN}/help/article/dub-api`, {