score:0

Try deleting index.html file. I have created a website in that I deleted the index.html from public folder and instead used index.js in functions folder.

score:0

I had the same problem as you. Using the following configuration made the files in my public folder (including the sitemap) accessible online after deployment:

"rewrites": [
  {
    "source": "/",
    "destination": "/index.html"
  },
  {
    "source": "/sitemap",
    "destination": "/sitemap.xml"
  }
]

score:2

This worked for me:

"redirects": [
  {
    "source": "/sitemap",
    "destination": "/sitemap.xml",
    "type": 301
  },
  {
    "source": "/sitemap/**",
    "destination": "/sitemap.xml",
    "type": 302
  }
] 

Related Query

More Query from same tag