14 lines
303 B
TypeScript
14 lines
303 B
TypeScript
|
import { MetadataRoute } from 'next'
|
||
|
import siteMetadata from '@/data/siteMetadata'
|
||
|
|
||
|
export default function robots(): MetadataRoute.Robots {
|
||
|
return {
|
||
|
rules: {
|
||
|
userAgent: '*',
|
||
|
allow: '/',
|
||
|
},
|
||
|
sitemap: `${siteMetadata.siteUrl}/sitemap.xml`,
|
||
|
host: siteMetadata.siteUrl,
|
||
|
}
|
||
|
}
|