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 Teyb391e90b8042
diff --git a/apps/web/app/api/cron/import/short/route.ts b/apps/web/app/api/cron/import/short/route.ts
index da41a5f0d3..c09663606c 100644
--- a/apps/web/app/api/cron/import/short/route.ts
+++ b/apps/web/app/api/cron/import/short/route.ts
@@ -4,7 +4,7 @@ import { log } from "@dub/utils";
import { NextResponse } from "next/server";
import { importLinksFromShort } 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();