Template
Initial commit
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F22Ms5Cxam5UHyxaCrtZzu
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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`,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user