问题 I have deployed a reactjs web app on my firebase hosting. I added a sitemap.xml file to the public folder. I edited firebase.json to route the source to sitemap.xml: "redirects": [ { "source": "/sitemap", "destination": "/sitemap.xml", "type": 302 } ], "rewrites": [ { "source": "/*", "destination": "/index.html" } ] But when ever I go https://blah blah.com/sitemap it always returns index.html I tried to add it to rewrites as well but it seems it always returns index.html . I am using React