24 lines
660 B
TypeScript
24 lines
660 B
TypeScript
import { tasksService } from '@/services/tasks';
|
|
import { tagsService } from '@/services/tags';
|
|
import { HomePageClient } from '@/components/HomePageClient';
|
|
|
|
// Force dynamic rendering (no static generation)
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
export default async function HomePage() {
|
|
// SSR - Récupération des données côté serveur
|
|
const [initialTasks, initialStats, initialTags] = await Promise.all([
|
|
tasksService.getTasks(),
|
|
tasksService.getTaskStats(),
|
|
tagsService.getTags()
|
|
]);
|
|
|
|
return (
|
|
<HomePageClient
|
|
initialTasks={initialTasks}
|
|
initialStats={initialStats}
|
|
initialTags={initialTags}
|
|
/>
|
|
);
|
|
}
|