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

开发计划

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

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

https://example.com/data不会是相同的https://example.com/data.xml

迈克尔·布莱

这是以下cleanUrls选项(如文档中所示firebase.json

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

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章