import type { MetadataRoute } from 'next'
import { SITE_URL } from '@/lib/app-url'

export default function robots(): MetadataRoute.Robots {
  return {
    rules: {
      userAgent: '*',
      allow: '/',
      // The app itself is private; only the marketing pages should be indexed.
      disallow: ['/dashboard', '/trips', '/history', '/billing', '/api/', '/invite/'],
    },
    sitemap: `${SITE_URL}/sitemap.xml`,
  }
}
