import type { MetadataRoute } from "next"; import { baseUrl } from "@/lib/seo"; export default function sitemap(): MetadataRoute.Sitemap { const base = baseUrl(); const routes: { path: string; priority: number; changeFrequency: "monthly" | "yearly" }[] = [ { path: "/", priority: 1, changeFrequency: "monthly" }, { path: "/services", priority: 0.9, changeFrequency: "monthly" }, { path: "/a-propos", priority: 0.8, changeFrequency: "monthly" }, { path: "/temoignages", priority: 0.6, changeFrequency: "monthly" }, { path: "/nous-joindre", priority: 0.8, changeFrequency: "yearly" }, { path: "/confidentialite", priority: 0.3, changeFrequency: "yearly" }, ]; return routes.map((r) => ({ url: `${base}${r.path}`, changeFrequency: r.changeFrequency, priority: r.priority, })); }