14 أسطر
299 B
TypeScript
14 أسطر
299 B
TypeScript
import type { MetadataRoute } from "next";
|
|
import { absoluteUrl, siteUrl } from "@/data/site-config";
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: "/",
|
|
},
|
|
host: siteUrl,
|
|
sitemap: absoluteUrl("/sitemap.xml"),
|
|
};
|
|
}
|