Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: add logs
Marc Seitz49154630299b
diff --git a/pages/api/revalidate.ts b/pages/api/revalidate.tsindex ab288604..fe774836 100644--- a/pages/api/revalidate.ts+++ b/pages/api/revalidate.ts@@ -32,8 +32,13 @@ export default async function handler(if (!link) {throw new Error("Link not found");}+ console.log(+ "revalidating",+ `/view/domains/${link.domainSlug}/${link.slug}`,+ );await res.revalidate(`/view/domains/${link.domainSlug}/${link.slug}`);} else {+ console.log("revalidating", `/view/${linkId}`);// revalidate a regular papermark linkawait res.revalidate(`/view/${linkId}`);}