0
0
Firebasecloud~10 mins

Multiple site hosting in Firebase - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to initialize Firebase hosting for multiple sites.

Firebase
firebase init hosting:[1]
Drag options to blanks, or click blank then click option'
Amulti-sites
Bsites
Cmultiple
Dmulti
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'multi' alone without '-sites'.
Using 'multiple' which is not a valid command option.
Using 'sites' which is plural but not the correct command.
2fill in blank
medium

Complete the code to deploy a specific site named 'blog' in Firebase hosting.

Firebase
firebase deploy --only hosting:[1]
Drag options to blanks, or click blank then click option'
Amain
Bblog
Cdefault
Dsite1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'main' which is not the target site here.
Using 'default' which is not the site name.
Using 'site1' which is not defined.
3fill in blank
hard

Fix the error in the Firebase configuration to add a new site named 'shop'.

Firebase
"hosting": [{"site": "[1]", "public": "shop_public"}]
Drag options to blanks, or click blank then click option'
Amain
Bstore
Cshop
Ddefault
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'store' instead of 'shop'.
Using 'main' which is a different site.
Using 'default' which is not the new site.
4fill in blank
hard

Fill both blanks to configure two sites 'app' and 'admin' in firebase.json.

Firebase
"hosting": [
  {"site": "[1]", "public": "app_public"},
  {"site": "[2]", "public": "admin_public"}
]
Drag options to blanks, or click blank then click option'
Aapp
Badmin
Cmain
Ddefault
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the site names.
Using 'main' or 'default' which are not the sites here.
5fill in blank
hard

Fill all three blanks to deploy only the 'app' and 'admin' sites, excluding 'blog'.

Firebase
firebase deploy --only hosting:[1],hosting:[2] --except hosting:[3]
Drag options to blanks, or click blank then click option'
Aapp
Badmin
Cblog
Dmain
Attempts:
3 left
💡 Hint
Common Mistakes
Including 'blog' in the --only list.
Excluding the wrong site.
Using 'main' which is not part of this deployment.