로그아웃 리다이렉트를 상대경로로 직접 제어
This commit is contained in:
1 parent
df1cdd3304
commit
c2b1b6169a
1 file changed
+2
-1
@@ -67,7 +67,8 @@ export default async function AdminLayout({
|
||||
action={async () => {
|
||||
"use server";
|
||||
|
||||
await signOut({ redirectTo: "/login" });
|
||||
await signOut({ redirect: false });
|
||||
redirect("/login");
|
||||
}}
|
||||
>
|
||||
<Button size="sm" type="submit" variant="outline">
|
||||
|
||||
Reference in new issue
Block a user