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 Tey3899c470f567
diff --git a/apps/web/app/api/cron/import/rebrandly/route.ts b/apps/web/app/api/cron/import/rebrandly/route.ts
index a86783fa1e..56dc1516dd 100644
--- a/apps/web/app/api/cron/import/rebrandly/route.ts
+++ b/apps/web/app/api/cron/import/rebrandly/route.ts
@@ -5,7 +5,7 @@ import { log } from "@dub/utils";
import { NextResponse } from "next/server";
import { importLinksFromRebrandly, importTagsFromRebrandly } 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();