migrate to nextjs

This commit is contained in:
Fran Jurmanović
2025-08-27 20:38:19 +02:00
parent 965e13a0bf
commit b269144ee7
120 changed files with 10393 additions and 8526 deletions

12
src/app/page.tsx Normal file
View File

@@ -0,0 +1,12 @@
import { redirect } from 'next/navigation';
import { getSession } from '@/lib/auth/server';
export default async function HomePage() {
const session = await getSession();
if (session.token && session.user) {
redirect('/dashboard');
} else {
redirect('/login');
}
}