Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: memory on annotate document
Marc Seitz59c95f06cc0b
diff --git a/pages/api/mupdf/annotate-document.ts b/pages/api/mupdf/annotate-document.tsindex bb06f8d6..a1b28cd2 100644--- a/pages/api/mupdf/annotate-document.ts+++ b/pages/api/mupdf/annotate-document.ts@@ -9,7 +9,6 @@ import { hexToRgb, log } from "@/lib/utils";// This function can run for a maximum of 120 secondsexport const config = {maxDuration: 180,- memory: 2048,};interface WatermarkConfig {diff --git a/vercel.json b/vercel.jsonindex 9a5af153..a513ec71 100644--- a/vercel.json+++ b/vercel.json@@ -2,6 +2,9 @@"functions": {"pages/api/mupdf/convert-page.ts": {"memory": 2048+ },+ "pages/api/mupdf/annotate-document.ts": {+ "memory": 2048}}}