I need to deploy multiple sites sharing the same Firestore resources.
In file firebase.json
I can use the hosting
section:
"hosting": {
"site": "mysite1", // change this to mysite2 for another site
"public": "dist",
...
What are the differences in using a different target
instead of site
?
"hosting": {
"target": "mytarget1", // change this to mytarget2 for another site
"public": "dist",
...
EDIT
Some links for target
mode:
Following the second link, you can read
Important: Using deploy targets is the recommended way to configure deploys for multiple Hosting sites.
If you previously configured your firebase.json
file by explicitly referencing your site-name, you should edit your firebase.json
configuration and your CLI commands to use deploy targets instead.
So, implicitly it speaks about a site-name configuration, it is the site: version, probably obsolete now.