Skip to content

robots.txt missing in /static (SvelteKit)

SvelteKit serves static assets from the /static directory. Without a static/robots.txt, no /robots.txt is served. Crawlers operate without guidance and may index internal paths, API endpoints, or staging content.

Create static/robots.txt.

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

Replace https://example.com with your actual domain. Add Disallow rules for any paths that should not be indexed.

Terminal window
curl -I https://yourdomain.com/robots.txt

Confirm the response is 200 OK. Then re-run orino audit.