- rebuild the public site on the Next.js App Router with static export, per-section SEO pages, metadata, sitemap, robots and a generated OG image - add full-screen scroll-snap regions, staged scroll reveals, a hash-free tab navigation with a sliding indicator and region-by-region menu scrolling - replace the theme text toggle with animated sun/moon icons - restructure the CRM API into config, middleware, models, routes, services and utils layers - redesign the CRM shell with a single surface, tab rail, full-width blurred DataTable, record dialogs and mask-based icons - update Docker/Nginx publishing, Makefile targets, shared UI polish and docs
20 lines
596 B
TypeScript
20 lines
596 B
TypeScript
import type { MetadataRoute } from "next";
|
|
import { ROUTES, SITE_URL } from "./lib/site";
|
|
|
|
export const dynamic = "force-static";
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const lastModified = new Date();
|
|
|
|
return ROUTES.map((route) => {
|
|
// `trailingSlash: true` : l'URL canonique se termine par `/` sauf la racine.
|
|
const path = route.path === "/" ? "/" : `${route.path}/`;
|
|
return {
|
|
url: new URL(path, SITE_URL).toString(),
|
|
lastModified,
|
|
changeFrequency: route.path === "/" ? "monthly" : "yearly",
|
|
priority: route.priority,
|
|
};
|
|
});
|
|
}
|