MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / SettingsPage

Function SettingsPage

packages/web/src/app/(app)/settings/page.tsx:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { auth } from "@/auth";
6
7export default async function SettingsPage() {
8 const session = await auth();
9 if (!session) {
10 return redirect(`/`);
11 }
12
13 const groups = await getSidebarNavGroups();
14 if (isServiceError(groups)) {
15 throw new ServiceErrorException(groups);
16 }
17 return redirect(groups[0].items[0].href);
18}

Callers

nothing calls this directly

Calls 3

getSidebarNavGroupsFunction · 0.90
isServiceErrorFunction · 0.90
redirectFunction · 0.85

Tested by

no test coverage detected