29aa346f9e
- Next.js 16.1.1 + React 19.2.3 + Tailwind v4 + shadcn/ui v3 - Template scaffold (App Router with (auth)/(dashboard)/landing route groups) - pnpm v10 lockfile - CLAUDE.md describing multi-tenant Appwrite architecture, 8 modules, Gitea+Coolify deploy
23 lines
607 B
TypeScript
23 lines
607 B
TypeScript
"use client";
|
|
|
|
import { useEffect } from "react";
|
|
import { useRouter } from "next/navigation";
|
|
|
|
export default function HomePage() {
|
|
const router = useRouter();
|
|
|
|
useEffect(() => {
|
|
router.replace("/dashboard");
|
|
}, [router]);
|
|
|
|
// Show a loading state while redirecting
|
|
return (
|
|
<div className="flex min-h-screen items-center justify-center">
|
|
<div className="text-center">
|
|
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-primary mx-auto"></div>
|
|
<p className="text-muted-foreground mt-2">Redirecting to dashboard...</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|