Files
petvity/app/robots.ts
T
g-butandClaude Sonnet 4.6 7f8744dad6 feat(seo): add robots.txt and hreflang alternates to all public pages
Add app/robots.ts to block portal/admin/api from indexing; create
lib/i18n/alternates.ts buildAlternates() helper; wire alternates into
generateMetadata of all 12 localized public pages (homepage, features,
about, pricing, pros, species guides, public adopt, adopt listing, pet
profile, shop, shop product, pro profile) with x-default pointing to EN.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 13:09:29 +02:00

16 lines
335 B
TypeScript

import type { MetadataRoute } from "next";
import { APP_URL } from "@/lib/config/app";
export default function robots(): MetadataRoute.Robots {
return {
rules: [
{
userAgent: "*",
allow: "/",
disallow: ["/portal/", "/admin/", "/api/"],
},
],
sitemap: `${APP_URL}/sitemap.xml`,
};
}