robots.ts or robots.txt missing (App Router)
What this means
Section titled “What this means”No app/robots.ts and no public/robots.txt. Without a robots file, crawlers have no guidance. Googlebot may crawl and attempt to index API routes, admin paths, or staging content.
How to fix it
Section titled “How to fix it”The preferred approach for App Router is app/robots.ts. Next.js generates and serves it at /robots.txt automatically.
import type { MetadataRoute } from 'next'
export default function robots(): MetadataRoute.Robots { return { rules: { userAgent: '*', allow: '/', }, sitemap: 'https://example.com/sitemap.xml', }}Replace https://example.com with your actual domain. Add paths to disallow for any routes you want to keep out of search results.
Verify the fix
Section titled “Verify the fix”curl -I https://yourdomain.com/robots.txtConfirm the response is 200 OK. View the response body to confirm the content is correct. Then re-run orino audit.