robots.ts 429 B

123456789101112131415161718192021222324
  1. import { MetadataRoute } from 'next';
  2. export default function robots(): MetadataRoute.Robots {
  3. return {
  4. rules: {
  5. userAgent: '*',
  6. allow: '/',
  7. disallow: [
  8. '/api/',
  9. '/profile/',
  10. '/change-',
  11. '/my-posts/',
  12. '/my-comments/',
  13. '/login-log/',
  14. '/exp-logs/',
  15. '/withdraw/',
  16. '/verify-email/',
  17. '/post/write/',
  18. '/post/edit/',
  19. ],
  20. },
  21. sitemap: 'https://bitforum.io/sitemap.xml',
  22. };
  23. }