0

In firebase.json, is there a way to rewrite (not redirect) all requests to the corresponding .html file but leave other extensions?

for example, https://example.com/foo will be the same as https://example.com/foo.html.

But https://example.com/data will not be the same as https://example.com/data.xml.

developomp
  • 53
  • 1
  • 7

1 Answers1

2

This is the cleanUrls option (as in the docs) in firebase.json:

{
  "hosting": {
    "cleanUrls": true
  }
}
Michael Bleigh
  • 23,726
  • 2
  • 68
  • 79