import React from 'react'; import Link from 'next/link'; import { ArrowRight } from 'lucide-react'; import { prisma } from '../../lib/prisma'; export const revalidate = 3600; // Revalidate every hour export default async function BlogPage() { const posts = await prisma.blogPost.findMany({ orderBy: { createdAt: 'desc' } }); return (

Le Blog de l'Entrepreneur

Conseils, actualités et success stories de l'écosystème africain.

{posts.length === 0 ? (

Aucun article n'a encore été publié.

Revenez bientôt pour de nouveaux contenus !

) : (
{posts.map(post => (
{post.title}

Actualité

{post.title}

{post.excerpt}

{post.author.charAt(0)}

{post.author}

))}
)}
); }