// app/page.tsx import { cookies } from "next/headers"; import { redirect } from "next/navigation"; import SignIn from "@/app/auth/sign-in/sign-in"; import SignUp from "@/app/auth/sign-up/sign-up"; export default async function HomePage() { // If already signed in, go straight to the app const ck = await cookies(); const at = ck.get("ma_at")?.value; if (at) redirect("/portal"); return (

MakeArmy

Free to use. Manage laser rigs, settings, and projects—all in one place.

Create an account

{/* Uses your existing sign-up component */}

Sign in

{/* Uses your existing sign-in component */}
We only use cookies strictly necessary to operate the site (e.g., your sign-in session).
); }