chore(repo): checkpoint current capakraken implementation state

This commit is contained in:
2026-03-29 12:47:12 +02:00
parent beae1a5d6e
commit 47e4d701ff
94 changed files with 4283 additions and 1710 deletions
+2 -2
View File
@@ -5,10 +5,10 @@ import { auth } from "~/server/auth.js";
export default async function AppLayout({ children }: { children: React.ReactNode }) {
const session = await auth();
if (!session) {
if (!session?.user) {
redirect("/auth/signin");
}
const userRole = (session.user as { role?: string }).role ?? "USER";
const userRole = (session.user as { role?: string } | undefined)?.role ?? "USER";
return <AppShell userRole={userRole}>{children}</AppShell>;
}
+1 -1
View File
@@ -12,7 +12,7 @@ export const runtime = "nodejs";
export async function GET() {
const session = await auth();
if (!session) {
if (!session?.user) {
return new Response("Unauthorized", { status: 401 });
}
+1 -1
View File
@@ -4,7 +4,7 @@ import { auth } from "~/server/auth.js";
export default async function HomePage() {
const session = await auth();
if (!session) {
if (!session?.user) {
redirect("/auth/signin");
}