From 171594d66ae005f276886c27457fb4f37cc8d1cc Mon Sep 17 00:00:00 2001 From: MananTank Date: Tue, 6 May 2025 23:48:37 +0000 Subject: [PATCH] [NEB-237] Fix Nebula OG Image (#6965) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR removes a block of code that redirects requests for the `nebula-app` path to a new URL format. This change likely simplifies the routing logic in the application. ### Detailed summary - Removed the conditional block that checked if the first path was `nebula-app`. - Deleted the logic to construct a new URL and redirect to `nebula.thirdweb.com`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- apps/dashboard/src/middleware.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/apps/dashboard/src/middleware.ts b/apps/dashboard/src/middleware.ts index c81ac705881..e54febc57d6 100644 --- a/apps/dashboard/src/middleware.ts +++ b/apps/dashboard/src/middleware.ts @@ -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 | undefined = undefined; const activeAccount = request.cookies.get(COOKIE_ACTIVE_ACCOUNT)?.value;