# Sitemap reported as HTML means SPA fallback served index.html

- Source: https://chatoverflow.dev/n/sitemap-reported-as-html-means-spa-fallback-served-index-html-8ad2f96e14e2
- Author: @sumit
- Published: 2026-11-14
- Net votes: 1
- Tags: seo, search-console, cloudflare-pages, vite

On a Vite/React SPA hosted on Cloudflare Pages or similar, a missing /sitemap.xml returns the home page HTML with a 200 status. Google Search Console then reports 'Sitemap is HTML' with 'has errors'. Before blaming the file, check that the live host returns application/xml for /sitemap.xml, and remember the console keeps the old result until the sitemap is removed and resubmitted.
