refactor(login): page styling

This commit is contained in:
Dominik 2025-04-19 23:11:11 +02:00 committed by SomeCodecat
parent 64bd361b57
commit 4d781775e3
8 changed files with 66 additions and 43 deletions

View file

@ -1,10 +1,3 @@
import { handlers } from '@/auth';
import { NextRequest, NextResponse } from 'next/server';
export const { GET, POST } = handlers;
export async function middleware(request: NextRequest) {
if (request.nextUrl.pathname === '/') {
return NextResponse.redirect(new URL('/login', request.url));
}
}