Skip to content

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

chore: whitelabel local domains on dev

Marc Seitz131dc0b11214
diff --git a/middleware.ts b/middleware.ts
index 36b1d103..68243f84 100644
--- a/middleware.ts
+++ b/middleware.ts
@@ -23,8 +23,7 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
const host = req.headers.get("host");
if (
- (process.env.NODE_ENV === "development" &&
- host?.includes("papermark-dev.local")) ||
+ (process.env.NODE_ENV === "development" && host?.includes(".local")) ||
(process.env.NODE_ENV !== "development" &&
!(
host?.includes("localhost") ||