로그아웃을 모듈 수준 서버 액션으로 변환 (빌드 간 액션 ID 안정화)

This commit is contained in:
2026-07-05 12:24:48 +09:00
parent c2b1b6169a
commit 65e9b0c5f3
2 changed files with 14 additions and 9 deletions
+10
View File
@@ -0,0 +1,10 @@
"use server";
import { redirect } from "next/navigation";
import { signOut } from "@/auth";
export async function logoutAction() {
await signOut({ redirect: false });
redirect("/login");
}