Skip to content

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

feat: add root redirect

Marc Seitz7b149fb19381
diff --git a/lib/middleware/domain.ts b/lib/middleware/domain.ts
index 125e9658..4755f606 100644
--- a/lib/middleware/domain.ts
+++ b/lib/middleware/domain.ts
@@ -32,6 +32,12 @@ export default async function DomainMiddleware(req: NextRequest) {
);
}
+ if (host === "research.elazaradvisors.com") {
+ return NextResponse.redirect(
+ new URL("https://research.elazaradvisors.com/root", req.url),
+ );
+ }
+
return NextResponse.redirect(
new URL("https://www.papermark.com/home", req.url),
);