12 lines
270 B
TypeScript
12 lines
270 B
TypeScript
import type { MetadataRoute } from "next";
|
|
import { siteUrl } from "./seo";
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: "/",
|
|
},
|
|
sitemap: new URL("/sitemap.xml", siteUrl).toString(),
|
|
};
|
|
}
|