chore: add more disallow paths for robots

This commit is contained in:
javayhu 2025-05-03 20:27:57 +08:00
parent d1359b91a3
commit 80fe789b9d

View File

@ -6,7 +6,7 @@ export default function robots(): MetadataRoute.Robots {
rules: {
userAgent: '*',
allow: '/',
disallow: ['/api/'],
disallow: ['/api/*', '/_next/*', '/settings/*', '/dashboard/*'],
},
sitemap: `${getBaseUrl()}/sitemap.xml`,
};