import { MetadataRoute } from 'next';
import { SITE_URL } from '@/lib/site';

export default function robots(): MetadataRoute.Robots {
  return {
    rules: {
      userAgent: '*',
      allow: '/',
      disallow: ['/write', '/login', '/signup', '/admin'],
    },
    sitemap: `${SITE_URL}/sitemap.xml`,
  };
}

