progres day 1

This commit is contained in:
smanylov
2025-11-25 17:13:16 +07:00
parent 10668aa997
commit 40766ae67b
26 changed files with 1336 additions and 216 deletions
+13
View File
@@ -0,0 +1,13 @@
import { NextResponse, NextRequest } from 'next/server';
const isLogin = true;
export function proxy(request: NextRequest) {
if (request.nextUrl.pathname !== '/login' && !isLogin) {
return NextResponse.redirect(new URL('/login', request.url));
}
}
export const config = {
matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)']
};