import type { MetadataRoute } from 'next';

export default function robots(): MetadataRoute.Robots {
  return {
    rules: [
      {
        userAgent: '*',
        allow: '/',
        disallow: ['/admin/', '/api/', '/auth/', '/cart', '/checkout', '/order-confirmation'],
      },
    ],
    sitemap: 'https://mercadodevida.es/sitemap.xml',
  };
}
