import type { MetadataRoute } from 'next'; import { SITE_URL } from '@/lib/site'; export default function robots(): MetadataRoute.Robots { return { rules: [{ userAgent: '*', allow: '/', disallow: ['/api/v1/', '/admin', '/admin/', '/search', '/watchlist', '/snapshot/', '/change/', '/sensor/'] }], sitemap: `${SITE_URL}/sitemap.xml`, host: SITE_URL, }; }