Vollständige Next.js 16 Webanwendung als Logbuch für die Sternwarte Welzheim. 4 Kuppeln (West/Ost/Süd/Pluto), BEO-basierte Authentifizierung mit erzwungenem Passwort-Wechsel beim Erstlogin, MySQL-Backend, Docker-Deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
379 B
TypeScript
17 lines
379 B
TypeScript
import { redirect } from 'next/navigation';
|
|
import { getSession } from '@/lib/session';
|
|
import MainClient from './MainClient';
|
|
|
|
export default async function HomePage() {
|
|
const session = await getSession();
|
|
if (!session) redirect('/login');
|
|
|
|
return (
|
|
<MainClient
|
|
kuerzel={session.kuerzel}
|
|
beoId={session.beoId}
|
|
beoName={session.beoName}
|
|
/>
|
|
);
|
|
}
|