10 lines
376 B
TypeScript
10 lines
376 B
TypeScript
import { redirect } from "next/navigation";
|
|
|
|
import { getCurrentAuthContext } from "@/modules/core/server/auth";
|
|
import { getWorkspaceHref } from "@/modules/shared/lib/workspace-routing";
|
|
|
|
export default async function AppIndexPage(): Promise<never> {
|
|
const context = await getCurrentAuthContext();
|
|
redirect(getWorkspaceHref(context?.organization?.slug, "/dashboard"));
|
|
}
|