Update sitemap URL in robots.txt to point to sitemap.xml

This commit is contained in:
cojocaru-david
2025-05-02 17:44:03 +03:00
parent 56ad099f6a
commit 97e20b5caf

View File

@@ -8,6 +8,6 @@ Sitemap: ${sitemapURL.href}
`
export const GET: APIRoute = ({ site }) => {
const sitemapURL = new URL('sitemap-index.xml', site)
const sitemapURL = new URL('sitemap.xml', site)
return new Response(getRobotsTxt(sitemapURL))
}