robots.ts18 lines · main
| 1 | import type { MetadataRoute } from 'next'; |
| 2 | |
| 3 | const SITE = 'https://briven.tech'; |
| 4 | |
| 5 | export default function robots(): MetadataRoute.Robots { |
| 6 | return { |
| 7 | rules: [ |
| 8 | { |
| 9 | userAgent: '*', |
| 10 | allow: '/', |
| 11 | // Dashboard is auth-gated and surfaces user data — disallow indexing. |
| 12 | // The /api proxy is internal-only. |
| 13 | disallow: ['/dashboard/', '/api/', '/signin'], |
| 14 | }, |
| 15 | ], |
| 16 | sitemap: `${SITE}/sitemap.xml`, |
| 17 | }; |
| 18 | } |