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
  • 73
  • 1
  • 8

1 Answers1

3

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

{
  "hosting": {
    "cleanUrls": true
  }
}
Michael Bleigh
  • 25,334
  • 2
  • 79
  • 85