mirror of
https://github.com/bitbaum/petvity.git
synced 2026-12-04 21:47:33 +01:00
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>
16 lines
335 B
TypeScript
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`,
|
|
};
|
|
}
|