Skip to content

Commit 171594d

Browse files
committed
[NEB-237] Fix Nebula OG Image (#6965)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex -->
1 parent 760b250 commit 171594d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

apps/dashboard/src/middleware.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,6 @@ export async function middleware(request: NextRequest) {
6565
});
6666
}
6767

68-
// requesting page at app/nebula-app on thirdweb.com -> redirect to nebula.thirdweb.com
69-
if (paths[0] === "nebula-app") {
70-
const newPaths = paths.slice(1);
71-
const url = new URL(request.nextUrl.href);
72-
url.host = `nebula.${host}`;
73-
url.pathname = `/${newPaths.join("/")}`;
74-
75-
return NextResponse.redirect(url.href);
76-
}
77-
7868
let cookiesToSet: Record<string, string> | undefined = undefined;
7969

8070
const activeAccount = request.cookies.get(COOKIE_ACTIVE_ACCOUNT)?.value;

0 commit comments

Comments
 (0)