Skip to content

Commit b208690

Browse files
authored
[DABOM-516] 루트 접근 불가 이슈 해결
[DABOM-516] 루트 접근 불가 이슈 해결
2 parents 66c25dc + e43313d commit b208690

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

apps/service/src/app/(beforeLogin)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function SignupPage() {
1616
<div className="flex min-h-screen flex-col items-center">
1717
<main className="mt-65 flex flex-col items-center">
1818
<div className="flex flex-col items-center gap-7">
19-
<div className="flex items-center justify-center">
19+
<div className="flex animate-bounce items-center justify-center">
2020
<DaboIcon type="default" sx={{ width: '130px', height: '130px' }} />
2121
</div>
2222

apps/service/src/proxy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export function proxy(request: NextRequest) {
1818
return NextResponse.next();
1919
}
2020

21-
if (!session && pathname !== '/login') {
21+
const isPublicRoute = pathname === '/login' || pathname === '/';
22+
23+
if (!session && !isPublicRoute) {
2224
const loginUrl = new URL('/login', request.url);
2325
loginUrl.searchParams.set('from', pathname);
2426
return NextResponse.redirect(loginUrl);

0 commit comments

Comments
 (0)