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

Steven Tey9f59ef0c09eb
diff --git a/apps/web/app/api/cron/import/bitly/route.ts b/apps/web/app/api/cron/import/bitly/route.ts
index a6d1ba6b5d..6241b3b2aa 100644
--- a/apps/web/app/api/cron/import/bitly/route.ts
+++ b/apps/web/app/api/cron/import/bitly/route.ts
@@ -6,7 +6,7 @@ import { log } from "@dub/utils";
import { NextResponse } from "next/server";
import { importLinksFromBitly } from "./utils";
-export const maxDuration = 300;
+export const maxDuration = process.env.NEXT_PUBLIC_IS_DUB ? 300 : 10
export async function POST(req: Request) {
const body = await req.json();