17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
import type { MetadataRoute } from 'next'
|
|
import { siteConfig } from './seo'
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: '*',
|
|
allow: ['/', '/viewer/', '/u/'],
|
|
disallow: ['/api/', '/editor/', '/settings', '/_next/'],
|
|
},
|
|
],
|
|
sitemap: `${siteConfig.url}/sitemap.xml`,
|
|
host: siteConfig.url,
|
|
}
|
|
}
|