File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
apps/dashboard/src/app/team/[team_slug] Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 11import { getTeamBySlug } from "@/api/team" ;
2+ import { redirect } from "next/navigation" ;
23import { loginRedirect } from "../../../../../login/loginRedirect" ;
34import { NebulaWaitListPage } from "../../../[project_slug]/nebula/components/nebula-waitlist-page" ;
45
@@ -14,5 +15,12 @@ export default async function Page(props: {
1415 loginRedirect ( `/team/${ params . team_slug } /~/nebula` ) ;
1516 }
1617
18+ // if nebula access is already granted, redirect to nebula web app
19+ const hasNebulaAccess = team . enabledScopes . includes ( "nebula" ) ;
20+
21+ if ( hasNebulaAccess ) {
22+ redirect ( "https://nebula.thirdweb.com" ) ;
23+ }
24+
1725 return < NebulaWaitListPage team = { team } /> ;
1826}
Original file line number Diff line number Diff line change 11import { getTeamBySlug } from "@/api/team" ;
2+ import { redirect } from "next/navigation" ;
23import { loginRedirect } from "../../../../login/loginRedirect" ;
34import { NebulaWaitListPage } from "./components/nebula-waitlist-page" ;
45
@@ -15,5 +16,12 @@ export default async function Page(props: {
1516 loginRedirect ( `/team/${ params . team_slug } /${ params . project_slug } /nebula` ) ;
1617 }
1718
19+ // if nebula access is already granted, redirect to nebula web app
20+ const hasNebulaAccess = team . enabledScopes . includes ( "nebula" ) ;
21+
22+ if ( hasNebulaAccess ) {
23+ redirect ( "https://nebula.thirdweb.com" ) ;
24+ }
25+
1826 return < NebulaWaitListPage team = { team } /> ;
1927}
You can’t perform that action at this time.
0 commit comments