17 lines
339 B
TypeScript
17 lines
339 B
TypeScript
import type { MetadataRoute } from 'next';
|
|
import { siteUrl } from '@/lib/shared';
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: '*',
|
|
allow: '/',
|
|
disallow: ['/api/', '/ingest/'],
|
|
},
|
|
],
|
|
sitemap: `${siteUrl}/sitemap.xml`,
|
|
host: siteUrl,
|
|
};
|
|
}
|