robots and sitemap added

This commit is contained in:
Owen Rees
2023-07-01 19:46:11 +02:00
parent 9761cc945f
commit 6efc55827f
2 changed files with 34 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { MetadataRoute } from "next";
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: "*",
allow: "/",
disallow: "/api/",
},
sitemap: "https://echecsfrance/sitemap.xml",
};
}
+22
View File
@@ -0,0 +1,22 @@
import { MetadataRoute } from "next";
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: "https://echecsfrance.com",
lastModified: new Date(),
},
{
url: "https://echecsfrance.com/tournois",
lastModified: new Date(),
},
{
url: "https://echecsfrance.com/qui-sommes-nous",
lastModified: new Date(),
},
{
url: "https://echecsfrance.com/contactez-nous",
lastModified: new Date(),
},
];
}