Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : agentilab-web8 * File : app/sitemap.ts9 * Module : App10 * Repository : https://git.spboucher.ai/agentilab-web11 * Project Website : Not specified12 * Created : 2026-12-0513 * Last Modified : 2026-12-0514 *15 * Author : Simon-Pierre Boucher16 * Position : Professor of Finance17 * Institution : Université du Québec en Outaouais (UQO)18 * Organization : SP Boucher19 * Website : https://spboucher.ai20 * Git : https://git.spboucher.ai21 *22 * Preferred Contact: contact@spboucher.ai23 * Development : dev@spboucher.ai24 * Support : support@spboucher.ai25 * Security/Admin : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License : Proprietary34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243import type { MetadataRoute } from 'next';44import { locales, languageTag } from '@/lib/i18n/config';45import { href, routeIds } from '@/lib/i18n/routes';46import { absoluteUrl } from '@/lib/site';47import { launchGates } from '@/content/public/legal';4849/** Plan du site : uniquement les URL canoniques publiques, avec leurs équivalents de langue. */50export default function sitemap(): MetadataRoute.Sitemap {51 return routeIds.flatMap((id) =>52 locales.map((locale) => ({53 url: absoluteUrl(href(id, locale)),54 lastModified: launchGates.legalTextsUpdatedOn,55 alternates: {56 languages: {57 [languageTag.fr]: absoluteUrl(href(id, 'fr')),58 [languageTag.en]: absoluteUrl(href(id, 'en')),59 'x-default': absoluteUrl(href(id, 'fr')),60 },61 },62 })),63 );64}65