Files
CoHaiSe/frontend/web/app/sitemap.ts
T
Gitea Actions 723b68ea80
deploy / deploy (push) Successful in 1m24s
feat: migrate showcase to Next.js and overhaul CRM UI
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

Co-authored-by: Gitea Actions <-[email protected]>
2026-11-16 00:08:17 +00:00

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,
};
});
}