Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: revalidate link outside
Marc Seitzc04392563a1c
diff --git a/lib/trigger/pdf-to-image.ts b/lib/trigger/pdf-to-image.tsindex d18da226..967b5266 100644--- a/lib/trigger/pdf-to-image.ts+++ b/lib/trigger/pdf-to-image.ts@@ -360,16 +360,16 @@ export const convertPdfToImage = task({isPrimary: false,},});+ }- await fetch(- `${process.env.NEXTAUTH_URL}/api/revalidate?secret=${process.env.REVALIDATE_TOKEN}&documentId=${documentId}`,- );+ updateStatus({+ progress: 95,+ text: "Revalidating links...",+ });- updateStatus({- progress: 100,- text: "Revalidating links...",- });- }+ await fetch(+ `${process.env.NEXTAUTH_URL}/api/revalidate?secret=${process.env.REVALIDATE_TOKEN}&documentId=${documentId}`,+ );// Clean up temporary directoryawait fs.rm(tempDirectory, { recursive: true });