Google Search Console reports sitemap.xml as invalid

It is to:

  • Set the production URL in config.toml
  • Use the default localhost URL when running hugo server (dev)
  • If you need some other URL during development, run hugo server -b http://somehost – but then you probably also want to set the --bind flag to the correct network interface.
2 Likes