Skip to content

Commit

Permalink
Update route.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey authored Dec 28, 2023
1 parent 9f59ef0 commit b391e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/app/api/cron/import/short/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b391e90

Please sign in to comment.