* sitemap migration to next * robots.txt migration * rss refactoring * claude upd * add test
14 lines
301 B
TypeScript
14 lines
301 B
TypeScript
import type { MetadataRoute } from "next"
|
|
import { siteUrl } from "@/const"
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: "/",
|
|
},
|
|
host: siteUrl,
|
|
sitemap: `${siteUrl}/sitemap.xml`,
|
|
}
|
|
}
|