Skip to content

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

feat: revalidate notion document links automatically

Marc Seitzf2aad9f27fc2
diff --git a/pages/view/[linkId]/index.tsx b/pages/view/[linkId]/index.tsx
index 7e90c943..b909b05f 100644
--- a/pages/view/[linkId]/index.tsx
+++ b/pages/view/[linkId]/index.tsx
@@ -136,7 +136,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
teamId === "cm0154tiv0000lr2t6nr5c6kp" ||
teamId === "clup33by90000oewh4rfvp2eg",
},
- revalidate: brand ? 10 : false,
+ revalidate: brand || recordMap ? 10 : false,
};
}