Recall & Review
beginner
What is Firebase Hosting used for?
Firebase Hosting is a service that lets you quickly deploy and serve web content like HTML, CSS, and JavaScript files with a secure and fast global network.
Click to reveal answer
beginner
Which command initializes Firebase Hosting in your project?
The command
firebase init hosting sets up Firebase Hosting in your project by creating necessary configuration files.Click to reveal answer
intermediate
What file does Firebase Hosting use to configure which files to deploy?
Firebase Hosting uses the
firebase.json file to specify which files and folders to deploy and how to handle rewrites or redirects.Click to reveal answer
beginner
How do you deploy your website to Firebase Hosting?
You deploy your website by running
firebase deploy --only hosting, which uploads your files to Firebase servers and makes your site live.Click to reveal answer
intermediate
Why is it important to set the correct public directory during Firebase Hosting setup?
Setting the correct public directory ensures Firebase deploys the right folder containing your website files, so your site loads correctly when visited.
Click to reveal answer
Which Firebase CLI command starts the hosting setup process?
✗ Incorrect
The command
firebase init hosting initializes hosting setup by creating config files.What does the
firebase deploy --only hosting command do?✗ Incorrect
This command uploads only the hosting files to Firebase servers, making your site live.
Where do you specify which folder contains your website files for Firebase Hosting?
✗ Incorrect
The
firebase.json file configures the public directory for hosting.What is the default public directory name suggested by Firebase Hosting?
✗ Incorrect
Firebase Hosting suggests
public as the default folder to serve your site files.Which Firebase Hosting feature helps serve your site quickly worldwide?
✗ Incorrect
Firebase Hosting uses a global CDN to deliver your site fast to users everywhere.
Explain the steps to set up and deploy a website using Firebase Hosting.
Think about initialization, configuration, and deployment commands.
You got /5 concepts.
Why is choosing the correct public directory important in Firebase Hosting setup?
Consider what happens if the wrong folder is deployed.
You got /4 concepts.