Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/api/links/download/dataroom-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getFileNameWithPdfExtension } from "@/lib/utils";
import { getIpAddress } from "@/lib/utils/ip";

export const config = {
maxDuration: 180,
maxDuration: 300,
};

export default async function handle(
Expand Down
5 changes: 5 additions & 0 deletions pages/api/links/download/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import prisma from "@/lib/prisma";
import { getFileNameWithPdfExtension } from "@/lib/utils";
import { getIpAddress } from "@/lib/utils/ip";

// This function can run for a maximum of 300 seconds
export const config = {
maxDuration: 300,
};

export default async function handle(
req: NextApiRequest,
res: NextApiResponse,
Expand Down