karuracc_dev_test/app/page.tsx
David Kiania fafef34304 Add Next.js app with Supabase auth, notes feature, and Docker setup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 15:43:09 +03:00

10 lines
310 B
TypeScript

import { redirect } from "next/navigation";
import { createClient } from "@/lib/supabase/server";
export default async function Home() {
const supabase = await createClient();
const { data: { user } } = await supabase.auth.getUser();
if (user) redirect("/dashboard");
else redirect("/auth/login");
}