import type { MetadataRoute } from 'next';
import { absoluteUrl, privatePaths } from '@/lib/site';

// No `Host:` line: it's an obsolete, non-standard directive that some validators reject.
export default function robots(): MetadataRoute.Robots {
  return {
    rules: [{ userAgent: '*', allow: '/', disallow: [...privatePaths] }],
    sitemap: absoluteUrl('/sitemap.xml'),
  };
}
