Skip to content

Commit 8aa0eea

Browse files
authored
Merge pull request #566 from trycompai/main
[comp] Production Deploy
2 parents cf0fff0 + 8447fce commit 8aa0eea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/trust/src/middleware.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { NextRequest, NextResponse } from "next/server";
22

33
const DOMAIN_TO_ORG_ID_MAP = {
4-
"fba6-145-40-151-14.ngrok-free.app": "org_681e8e3282ad3e9eb78bc58c",
54
"security.trycomp.ai": "org_681e8e3282ad3e9eb78bc58c",
65
"trust.trycomp.ai": null,
6+
"dad6-145-40-151-14.ngrok-free.app": "org_681e8e3282ad3e9eb78bc58c",
77
};
88

99
export async function middleware(request: NextRequest) {
@@ -23,6 +23,7 @@ export async function middleware(request: NextRequest) {
2323
if (url.pathname.startsWith(`/${orgIdForCustomDomain}`)) {
2424
return NextResponse.next();
2525
}
26+
2627
url.pathname = `/${orgIdForCustomDomain}${url.pathname}`;
2728
return NextResponse.rewrite(url);
2829
}

0 commit comments

Comments
 (0)