Feat: 로그인 여부에 따른 메인페이지 이동 및 dashboard 처리
This commit is contained in:
@@ -285,7 +285,7 @@ export async function signout() {
|
||||
revalidatePath("/", "layout");
|
||||
|
||||
// 3. 로그인 페이지로 리다이렉트
|
||||
redirect("/login");
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { AUTH_ROUTES } from "@/features/auth/constants";
|
||||
import {
|
||||
login,
|
||||
signInWithGoogle,
|
||||
@@ -122,7 +123,7 @@ export default function LoginForm() {
|
||||
</div>
|
||||
{/* 비밀번호 찾기 링크 */}
|
||||
<Link
|
||||
href="/forgot-password"
|
||||
href={AUTH_ROUTES.FORGOT_PASSWORD}
|
||||
className="text-sm font-medium text-gray-700 hover:text-black dark:text-gray-300 dark:hover:text-white"
|
||||
>
|
||||
비밀번호 찾기
|
||||
@@ -150,7 +151,7 @@ export default function LoginForm() {
|
||||
<p className="text-center text-sm text-gray-600 dark:text-gray-400">
|
||||
계정이 없으신가요?{" "}
|
||||
<Link
|
||||
href="/signup"
|
||||
href={AUTH_ROUTES.SIGNUP}
|
||||
className="font-semibold text-gray-900 transition-colors hover:text-black dark:text-gray-100 dark:hover:text-white"
|
||||
>
|
||||
회원가입 하기
|
||||
|
||||
@@ -180,6 +180,7 @@ export const AUTH_ROUTES = {
|
||||
AUTH_CONFIRM: "/auth/confirm",
|
||||
AUTH_CALLBACK: "/auth/callback",
|
||||
HOME: "/",
|
||||
DASHBOARD: "/dashboard",
|
||||
} as const;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user