Skip to content

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

Merge branch 'main' into feat/s3

Marc Seitzd708e343da89
diff --cc lib/constants.ts
index d8982944,b90e2165..f3b6eaa9
--- a/lib/constants.ts
+++ b/lib/constants.ts
@@@ -36,9 -36,10 +36,17 @@@ export const REACTIONS =
},
];
+// time in milliseconds
+export const ONE_SECOND = 1000;
+export const ONE_MINUTE = ONE_SECOND * 60;
+export const ONE_HOUR = ONE_MINUTE * 60;
+export const ONE_DAY = ONE_HOUR * 24;
+export const ONE_WEEK = ONE_DAY * 7;
++
+ // growing list of blocked pathnames that lead to 404s
+ export const BLOCKED_PATHNAMES = [
+ "/phpmyadmin",
+ "/server-status",
+ "/wordpress",
+ "/_all_dbs",
+ ];