| 1 | import type { MetadataRoute } from "next"; |
| 2 | import { SITE_URL } from "@/lib/page-meta"; |
| 3 | |
| 4 | export default function robots(): MetadataRoute.Robots { |
| 5 | return { |
| 6 | rules: [ |
| 7 | { |
| 8 | userAgent: "*", |
| 9 | allow: ["/", "/llms.txt", "/llms-full.txt", "/features.json", "/docs-markdown/"], |
| 10 | disallow: ["/api/", "/*/admin"], |
| 11 | }, |
| 12 | { |
| 13 | userAgent: ["GPTBot", "OAI-SearchBot", "ChatGPT-User", "ClaudeBot", "Claude-SearchBot", "Claude-User", "PerplexityBot", "Perplexity-User", "Google-Extended"], |
| 14 | allow: "/", |
| 15 | disallow: ["/api/", "/*/admin"], |
| 16 | }, |
| 17 | ], |
| 18 | sitemap: `${SITE_URL}/sitemap.xml`, |
| 19 | }; |
| 20 | } |
| 21 |