Template
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F22Ms5Cxam5UHyxaCrtZzu
19 lines
434 B
TypeScript
19 lines
434 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
import { SITE_ORIGIN } from "@/lib/site";
|
|
|
|
/**
|
|
* `/robots.txt` (engineering.md F10). Allows all crawlers, points to the
|
|
* sitemap, and disallows the cart + API surfaces.
|
|
*/
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: "/",
|
|
disallow: ["/cart", "/api/"],
|
|
},
|
|
sitemap: `${SITE_ORIGIN}/sitemap.xml`,
|
|
};
|
|
}
|