import { MetadataRoute } from 'next';

export default function robots(): MetadataRoute.Robots {
  const baseUrl = 'https://www.qrmaster.net';

  return {
    rules: {
      userAgent: '*',
      allow: ['/', '/_next/static/', '/_next/image/'],
      disallow: [
        '/api/',
        '/dashboard/',
        '/create/',
        '/settings/',
        '/newsletter/',
      ],
    },
    sitemap: `${baseUrl}/sitemap.xml`,
  };
}
