Skip to content

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

feat: add custom domain root redirects

Marc Seitzeee01a1fdf59
diff --git a/lib/middleware/domain.ts b/lib/middleware/domain.ts
index f9bf3901..2264353a 100644
--- a/lib/middleware/domain.ts
+++ b/lib/middleware/domain.ts
@@ -14,6 +14,18 @@ export default async function DomainMiddleware(req: NextRequest) {
);
}
+ if (host === "fund.tradeair.in") {
+ return NextResponse.redirect(
+ new URL("https://tradeair.in/sv-fm-inbound", req.url),
+ );
+ }
+
+ if (host === "docs.pashupaticapital.com") {
+ return NextResponse.redirect(
+ new URL("https://www.pashupaticapital.com/", req.url),
+ );
+ }
+
return NextResponse.redirect(
new URL("https://www.papermark.com/home", req.url),
);