Files
nrx.sh/src/app/blog/login/page.tsx

13 lines
275 B
TypeScript
Raw Normal View History

2025-04-02 00:17:25 +02:00
"use server";
import { redirect } from "next/navigation";
import { isLoggedIn } from "@/components/auth";
2025-04-02 00:17:25 +02:00
import FormComponent from "./Form";
export default async function Login() {
if (await isLoggedIn()) {
redirect("/blog/write");
}
return <FormComponent />;
}