import type { MetadataRoute } from "next";
import { SITE_URL } from "@/lib/seo";

export default function robots(): MetadataRoute.Robots {
  return {
    rules: [
      {
        userAgent: "*",
        allow: "/",
        // Private app, auth, and admin areas — keep them out of the index.
        disallow: [
          "/api/",
          "/admin",
          "/admin-login",
          "/login",
          "/verify",
          "/invite/",
          "/onboarding",
          "/home",
          "/activity",
          "/ai",
          "/circle",
          "/family",
          "/growth",
          "/medical",
          "/memories",
          "/menu",
          "/milestones",
          "/notifications",
          "/profile",
          "/settings",
          "/wardrobe",
          "/dev",
          "/m/",
        ],
      },
    ],
    sitemap: `${SITE_URL}/sitemap.xml`,
    host: SITE_URL,
  };
}
