Firebase Hosting

Host your static website files on Google Servers

Published on

Thursday, Jan 9, 2020

Firebase is a powerful and feature-packed BAAS. Those who want to host their static website to the cloud and using Firebase to power their backend, Firebase hosting can become the best option for such projects.

Hosting allows you to host Static website files (JS, HTML, CSS, Fonts, Icons, Images, etc).

Firebase Hosting is production-grade web content hosting for developers. With a single command, you can quickly deploy web apps and serve both static and dynamic content to a global CDN (content delivery network). You can also pair Firebase Hosting with Cloud Functions or Cloud Run to build and host microservices on Firebase.

How does it work?

Firebase Hosting is built for the modern web developer. Websites and apps are more powerful than ever with the rise of front-end JavaScript frameworks like Angular and static generator tools like Jekyll. Whether you are deploying a simple app landing page or a complex Progressive Web App (PWA), Hosting gives you the infrastructure, features, and tooling tailored to deploying and managing websites and apps.

Using the Firebase CLI, you deploy files from local directories on your computer to your Hosting server. Beyond serving static content, you can use Cloud Functions for Firebase or Cloud Run to serve dynamic content and host microservices on your sites. All content is served over an SSL connection from the closest edge server on our global CDN.

Firebase Hosting has lightweight hosting configuration options for you to build sophisticated PWAs. You can easily rewrite URLs for client-side routing or set up custom headers.

For serving your content, Firebase offers several domain and subdomain options: