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 const runtime = "edge" for links/random

Steven Tey8debf5081bd2
diff --git a/apps/web/app/api/links/random/route.ts b/apps/web/app/api/links/random/route.ts
index a38098458f..c65eebef69 100644
--- a/apps/web/app/api/links/random/route.ts
+++ b/apps/web/app/api/links/random/route.ts
@@ -5,8 +5,6 @@ import { domainKeySchema } from "@/lib/zod/schemas/links";
import { getSearchParams } from "@dub/utils";
import { NextRequest, NextResponse } from "next/server";
-export const runtime = "edge";
-
// GET /api/links/random – get a random available link key for a given domain
export const GET = async (req: NextRequest) => {
try {