firebase-hosting

Firebase rewrite based on subdomain

有些话、适合烂在心里 提交于 2020-08-22 05:26:50
问题 I've got a project hosted on firebase. I'd like to use a domain and subdomain as follows: example.com: rewrite to index-landing.html app.example.com: rewrite to index.html Is that possible? I've tried the following under the hosting section of firebase.json: "rewrites": [ { "source": "https://example.com", "destination": "/index-landing.html" }, { "source": "https://app.example.com/**", "destination": "/index.html" } ] Any ideas? 回答1: I have the same issue. I think rewrites only support

Firebase rewrite based on subdomain

拈花ヽ惹草 提交于 2020-08-22 05:24:58
问题 I've got a project hosted on firebase. I'd like to use a domain and subdomain as follows: example.com: rewrite to index-landing.html app.example.com: rewrite to index.html Is that possible? I've tried the following under the hosting section of firebase.json: "rewrites": [ { "source": "https://example.com", "destination": "/index-landing.html" }, { "source": "https://app.example.com/**", "destination": "/index.html" } ] Any ideas? 回答1: I have the same issue. I think rewrites only support