Firebase Hosting: Serving Different Pages from Different User Domains

We use custom domains on firebase hosting: our application, submitted from index.html, works great on app.example.com. We also connected www.example.com, which also serves the application.

The problem is this: at www.example.com I want to be able to host a simple static page. Is there any way to configure this when overwriting? We can easily output the additional html file in the deployment, next to index.html.

Any ideas?

Our firebase.json:

{
  "database": {
    "rules": "database.rules.json"
  },
  "hosting": {
    "public": "public",
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}
+4
source share
1 answer

Firebase Hosting . , www, .

+4

Source: https://habr.com/ru/post/1677461/


All Articles