mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
c5a1503684
* Localisation * Update tests * Fix map markers in English view * Fix typo
25 lines
555 B
TypeScript
25 lines
555 B
TypeScript
import { MetadataRoute } from "next";
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
return ['fr', 'en'].flatMap(locale => {
|
|
const prefix = `https://echecsfrance.com/${locale === 'fr' ? '' : `${locale}/`}`
|
|
return [
|
|
{
|
|
url: prefix,
|
|
lastModified: new Date(),
|
|
},
|
|
{
|
|
url: `${prefix}tournois`,
|
|
lastModified: new Date(),
|
|
},
|
|
{
|
|
url: `${prefix}qui-sommes-nous`,
|
|
lastModified: new Date(),
|
|
},
|
|
{
|
|
url: `${prefix}contactez-nous`,
|
|
lastModified: new Date(),
|
|
},
|
|
]});
|
|
}
|