jonbio/app/robots.ts

16 lines
342 B
TypeScript
Raw Normal View History

import { MetadataRoute } from 'next'
import siteMetadata from '@/data/siteMetadata'
2024-10-31 22:49:51 +08:00
export const dynamic = 'force-static'
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
},
sitemap: `${siteMetadata.siteUrl}/sitemap.xml`,
host: siteMetadata.siteUrl,
}
}