2023-08-16 23:55:57 +08:00
|
|
|
import { MetadataRoute } from 'next';
|
|
|
|
import siteMetadata from '@/data/siteMetadata';
|
2023-08-16 23:29:22 +08:00
|
|
|
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
|
|
return {
|
|
|
|
rules: {
|
|
|
|
userAgent: '*',
|
|
|
|
allow: '/',
|
|
|
|
},
|
|
|
|
sitemap: `${siteMetadata.siteUrl}/sitemap.xml`,
|
|
|
|
host: siteMetadata.siteUrl,
|
2023-08-16 23:55:57 +08:00
|
|
|
};
|
2023-08-16 23:29:22 +08:00
|
|
|
}
|