website refactor

This commit is contained in:
2026-01-18 13:26:35 +01:00
parent 350c78504d
commit 0b301feb61
225 changed files with 1678 additions and 26666 deletions

View File

@@ -1,6 +1,7 @@
import { notFound, redirect } from 'next/navigation';
import { DashboardPageQuery } from '@/lib/page-queries/DashboardPageQuery';
import { DashboardTemplate } from '@/templates/DashboardTemplate';
import { logger } from '@/lib/infrastructure/logging/logger';
export default async function DashboardPage() {
const result = await DashboardPageQuery.execute();
@@ -15,7 +16,7 @@ export default async function DashboardPage() {
redirect('/');
} else {
// serverError, networkError, unknown, validationError, unauthorized
console.error('Dashboard error:', error);
logger.error('Dashboard error', undefined, { errorType: error });
notFound();
}
}