Files
homaroma/apps/website/src/app/robots.ts
T
2026-06-20 18:57:24 -04:00

24 lines
483 B
TypeScript

import { MetadataRoute } from 'next';
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000';
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
disallow: [
'/api/',
'/_next/',
'/*/profile/',
'/*/checkout/',
'/*/order/',
'/profile/',
'/checkout/',
'/order/'
],
},
sitemap: `${baseUrl}/sitemap.xml`,
};
}