Skip to content

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

fix: only revalidate if there's a brand

Marc Seitz3e8adadad53f
diff --git a/pages/view/[linkId]/index.tsx b/pages/view/[linkId]/index.tsx
index 428f7ca0..e880f09d 100644
--- a/pages/view/[linkId]/index.tsx
+++ b/pages/view/[linkId]/index.tsx
@@ -72,7 +72,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
},
brand, // pass brand to the client
},
- revalidate: 10,
+ revalidate: brand ? 10 : false,
};
};