mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
28 lines
608 B
TypeScript
28 lines
608 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(),
|
|
},
|
|
];
|
|
});
|
|
}
|