删除firebase中html文件的文件扩展名

删除firebase中html文件的文件扩展名,firebase,web,firebase-hosting,Firebase,Web,Firebase Hosting,在firebase.json中,是否有办法将所有请求重写(而不是重定向)到相应的.html文件,但保留其他扩展名 例如,https://example.com/foo将与https://example.com/foo.html 但是https://example.com/data与https://example.com/data.xml这是firebase.json中的cleanUrls选项: { "hosting": { "cleanUrls": true } }

firebase.json
中,是否有办法将所有请求重写(而不是重定向)到相应的.html文件,但保留其他扩展名

例如,
https://example.com/foo
将与
https://example.com/foo.html


但是
https://example.com/data
https://example.com/data.xml

这是
firebase.json
中的
cleanUrls
选项:

{
  "hosting": {
    "cleanUrls": true
  }
}