Is it possible to use wilcard in firebase hosting?

Asked

Viewed 18 times

0

1 answer

1


As it shows the documentation, Firebase Hosting can do redirects. But these redirects only work in the URL (and not in subdomains as you need). For example, you could redirect https://moreirasbuffet.com/* to the page https://moreirasbuffet.com/index.html just editing your file firebase.json to place:

"hosting": {
  // Add the "redirects" section within "hosting"
  "redirects": [ {
    "source" : "/*",
    "destination" : "https://moreirasbuffet.com/index.html",
    "type" : 301
  } ]
}

Unfortunately, this feature is not available for subdomains, because Firebase expects you to create them manually (something you said you neither want nor can).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.