Skip to content

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

feat: increase maxDuration for convert pages function

Marc Seitzbe79073d0d06
diff --git a/pages/api/mupdf/convert-page.ts b/pages/api/mupdf/convert-page.ts
index 1ab50a8d..c0982621 100644
--- a/pages/api/mupdf/convert-page.ts
+++ b/pages/api/mupdf/convert-page.ts
@@ -4,6 +4,11 @@ import mupdf from "mupdf";
import { put } from "@vercel/blob";
import prisma from "@/lib/prisma";
+// This function can run for a maximum of 60 seconds
+export const config = {
+ maxDuration: 60,
+};
+
export default async (req: NextApiRequest, res: NextApiResponse) => {
// check if post method
if (req.method !== "POST") {