This commit is contained in:
@@ -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(),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user