"use client"; import Link from "next/link"; import { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { doesSessionExist } from "supertokens-web-js/recipe/session"; export default function HomePage() { const router = useRouter(); const [isLoading, setIsLoading] = useState(true); const [isLoggedIn, setIsLoggedIn] = useState(false); useEffect(() => { // Check if user is already logged in doesSessionExist().then((exists) => { setIsLoggedIn(exists); setIsLoading(false); // If logged in, redirect to projects if (exists) { router.push("/marks-account/projects"); } }).catch(() => { setIsLoading(false); }); }, [router]); if (isLoading) { return (
Loading...
Track, manage, and deploy your AI-coded projects with ease.
Deploy to Coolify with one click
Track AI coding sessions
Monitor project progress
✅ Self-hosted • ✅ Open source • ✅ Powered by Coolify