File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ export default function RootLayout({
2323 < body
2424 className = { `${ geistSans . variable } ${ geistMono . variable } antialiased` }
2525 >
26-
27-
26+
2827 { children }
2928
3029 < BottomNavBar />
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ export function middleware(request: NextRequest) {
1212 publicRoutes . some ( ( route ) => pathname . startsWith ( route + '/' ) ) ;
1313
1414 // If no token and trying to access protected route
15- if ( ! token && ! isPublicRoute ) {
16- console . log ( `Redirecting ${ pathname } to /auth - no token` ) ;
17- return NextResponse . redirect ( new URL ( '/auth' , request . url ) ) ;
18- }
15+ // if (!token && !isPublicRoute) {
16+ // console.log(`Redirecting ${pathname} to /auth - no token`);
17+ // return NextResponse.redirect(new URL('/auth', request.url));
18+ // }
1919
2020 return NextResponse . next ( ) ;
2121}
You can’t perform that action at this time.
0 commit comments