Add sitemap and portfolio category SEO routes
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-11 23:13:36 +01:00
parent cff416dd83
commit 64976d6e12
8 changed files with 360 additions and 81 deletions
+3
View File
@@ -1,6 +1,8 @@
import type { MetadataRoute } from "next";
export default function robots(): MetadataRoute.Robots {
const siteUrl = new URL(process.env.NEXT_PUBLIC_SITE_URL ?? "https://mohfarawati.de");
return {
rules: [
{
@@ -8,5 +10,6 @@ export default function robots(): MetadataRoute.Robots {
disallow: ["/root"],
},
],
sitemap: new URL("/sitemap.xml", siteUrl).toString(),
};
}