mirror of
https://github.com/2930134478/AI-CS.git
synced 2026-06-15 00:44:30 +08:00
16 lines
324 B
TypeScript
16 lines
324 B
TypeScript
import type { MetadataRoute } from "next";
|
|
import { getSiteUrl } from "@/lib/site";
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
const base = getSiteUrl();
|
|
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: "/",
|
|
disallow: ["/agent/", "/api/"],
|
|
},
|
|
sitemap: `${base}/sitemap.xml`,
|
|
};
|
|
}
|