import type { MetadataRoute } from "next"; // Allow crawlers on the public surface; keep the authenticated app out of the // index. (Per-tree noindex for `unlisted`/`site_members` pages needs server // rendering — tracked as a follow-up; those trees aren't linked or listed, so // they aren't discoverable by crawl in the meantime.) export default function robots(): MetadataRoute.Robots { return { rules: { userAgent: "*", allow: ["/", "/p/"], disallow: ["/trees", "/settings", "/import", "/login", "/register"], }, }; }