Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: revalidate every 60s
Marc Seitzb4fc66d60017
diff --git a/pages/view/[linkId]/d/[documentId].tsx b/pages/view/[linkId]/d/[documentId].tsxindex 46a854e1..8ca8ea7d 100644--- a/pages/view/[linkId]/d/[documentId].tsx+++ b/pages/view/[linkId]/d/[documentId].tsx@@ -267,7 +267,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {teamId === "cm76hfyvy0002q623hmen99pf",logoOnAccessForm: teamId === "cm7nlkrhm0000qgh0nvyrrywr",},- revalidate: brand || recordMap ? 10 : false,+ revalidate: brand || recordMap ? 10 : 60,};} catch (error) {console.error("Fetching error:", error);diff --git a/pages/view/[linkId]/index.tsx b/pages/view/[linkId]/index.tsxindex 1cd51762..c4095724 100644--- a/pages/view/[linkId]/index.tsx+++ b/pages/view/[linkId]/index.tsx@@ -154,7 +154,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {teamId === "cm7nlkrhm0000qgh0nvyrrywr" ||teamId === "clup33by90000oewh4rfvp2eg",},- revalidate: brand || recordMap ? 10 : false,+ revalidate: brand || recordMap ? 10 : 60,};}diff --git a/pages/view/domains/[domain]/[slug]/d/[documentId].tsx b/pages/view/domains/[domain]/[slug]/d/[documentId].tsxindex 60808f69..61fe5d8f 100644--- a/pages/view/domains/[domain]/[slug]/d/[documentId].tsx+++ b/pages/view/domains/[domain]/[slug]/d/[documentId].tsx@@ -285,7 +285,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {teamId === "cm76hfyvy0002q623hmen99pf",logoOnAccessForm: teamId === "cm7nlkrhm0000qgh0nvyrrywr",},- revalidate: brand || recordMap ? 10 : false,+ revalidate: brand || recordMap ? 10 : 60,};} catch (error) {console.error("Fetching error:", error);