Skip to content

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

chore: add localhost for testing prod builds locally

Marc Seitz7440ce8f65f9
diff --git a/middleware.ts b/middleware.ts
index 8328244f..bf0e2ada 100644
--- a/middleware.ts
+++ b/middleware.ts
@@ -24,6 +24,7 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
if (
process.env.NODE_ENV !== "development" &&
!(
+ host?.includes("localhost") ||
host?.includes("papermark.io") ||
host?.endsWith(".vercel.app")
)