Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions apps/dashboard/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,6 @@ export async function middleware(request: NextRequest) {
});
}

// requesting page at app/nebula-app on thirdweb.com -> redirect to nebula.thirdweb.com
if (paths[0] === "nebula-app") {
const newPaths = paths.slice(1);
const url = new URL(request.nextUrl.href);
url.host = `nebula.${host}`;
url.pathname = `/${newPaths.join("/")}`;

return NextResponse.redirect(url.href);
}

let cookiesToSet: Record<string, string> | undefined = undefined;

const activeAccount = request.cookies.get(COOKIE_ACTIVE_ACCOUNT)?.value;
Expand Down
Loading