Skip to content

SEO006 · robots.txt

Severity: warning

The project must have a robots.txt — either at static/robots.txt or served via a src/routes/robots.txt/+server endpoint.

robots.txt tells crawlers which paths they may fetch and points them to your sitemap; missing it leaves crawl behaviour to defaults.

Add static/robots.txt or a src/routes/robots.txt/+server endpoint:

User-agent: *
Allow: /
Sitemap: https://example.com/sitemap.xml