Files
sass-mohfarawati/app/robots.ts
T
2026-03-11 23:13:36 +01:00

16 lines
357 B
TypeScript

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: [
{
userAgent: "*",
disallow: ["/root"],
},
],
sitemap: new URL("/sitemap.xml", siteUrl).toString(),
};
}