async function getProjects() { const baseUrl = process.env.BACKEND_URL; if (!baseUrl) { throw new Error("Variable d'environnement BACKEND_URL manquante"); } const res = await fetch(`${baseUrl}/projects/`, { cache: "no-store", }); if(!res.ok){ throw new Error("Erreur lors de la récupération des projets depuis l'API"); } return res.json(); } export default async function ProjectsPage() { const projects = await getProjects(); return(

Mes projets

); }