Skip to content

Commit 4269b15

Browse files
committed
fix(50): 공개 경로에 루트 경로 추가
1 parent c4b2183 commit 4269b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { TOKEN_TIMES } from "@/constants";
66
import { getSessionFromServer } from "@/lib/session";
77

88
// 인증이 필요 없는 경로
9-
const PUBLIC_PATHS = ["/login", "/signup", "/public", "/login/callback"];
9+
const PUBLIC_PATHS = ["/", "/login", "/signup", "/public", "/login/callback"];
1010

1111
const isPublicPath = (pathname: string) => {
1212
return PUBLIC_PATHS.some(path => pathname.startsWith(path));

0 commit comments

Comments
 (0)