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"
}
]
}
}
source
share