Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

Increase maxDuration for datarooms API endpoint to 180 seconds

Cursor Agent4ea3aae22543
diff --git a/pages/api/teams/[teamId]/datarooms/index.ts b/pages/api/teams/[teamId]/datarooms/index.ts
index 09a73b7b..89e1bb13 100644
--- a/pages/api/teams/[teamId]/datarooms/index.ts
+++ b/pages/api/teams/[teamId]/datarooms/index.ts
@@ -10,6 +10,10 @@ import { newId } from "@/lib/id-helper";
import prisma from "@/lib/prisma";
import { CustomUser } from "@/lib/types";
+export const config = {
+ maxDuration: 180,
+};
+
export default async function handle(
req: NextApiRequest,
res: NextApiResponse,