0
0
Firebasecloud~5 mins

Multiple site hosting in Firebase - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is multiple site hosting in Firebase?
It allows you to host more than one website or web app under the same Firebase project, each with its own domain or subdomain.
Click to reveal answer
beginner
How do you add a new site to your Firebase project for multiple site hosting?
Use the Firebase CLI command firebase hosting:sites:create <site-name> to create a new site within your project.
Click to reveal answer
intermediate
How do you deploy different sites in a Firebase project?
You specify the site name in the firebase.json file under hosting and deploy using firebase deploy --only hosting:<site-name>.
Click to reveal answer
intermediate
Can multiple sites in Firebase share the same Firebase project resources?
Yes, all sites share the same Firebase project resources like database, storage, and functions, but each site has its own hosting configuration.
Click to reveal answer
intermediate
Why use multiple site hosting instead of separate Firebase projects?
It simplifies management by keeping sites under one project, reduces costs, and allows shared backend resources while serving different frontends.
Click to reveal answer
Which Firebase CLI command creates a new site for multiple site hosting?
Afirebase hosting:sites:create <site-name>
Bfirebase init hosting
Cfirebase deploy --only hosting
Dfirebase hosting:add-site <site-name>
How do you deploy a specific site in a Firebase project with multiple sites?
Afirebase deploy --only hosting:<site-name>
Bfirebase deploy --site <site-name>
Cfirebase deploy --all-sites
Dfirebase deploy --target <site-name>
Do multiple sites in Firebase have separate backend resources by default?
AYes, each site has its own backend
BOnly for storage, not database
CNo, they share the same backend resources
DOnly if you configure separate projects
What file do you configure to specify hosting settings for multiple sites?
A.firebaserc
Bfirebase.json
Cpackage.json
Dhosting.config
What is a benefit of using multiple site hosting in Firebase?
ANo need to configure hosting
BSeparate billing for each site
CEach site uses a different Firebase project
DSimplified management under one project
Explain how to set up and deploy multiple sites in a single Firebase project.
Think about commands and configuration files needed.
You got /3 concepts.
    Describe the advantages and limitations of multiple site hosting in Firebase.
    Consider management and resource sharing aspects.
    You got /4 concepts.