Firebase Hosting provides fast and secure static hosting for your web app.
Firebase Hosting is production-grade web content hosting for developers. With Hosting, you can quickly and easily deploy web apps and static content to a global content-delivery network (CDN) with a single command.
|Served over a secure connection||The modern web is secure. Zero-configuration SSL is built into Firebase Hosting so content is always delivered securely.|
|Fast content delivery||Each file you upload is cached on SSDs at CDN edges around the world. No matter where your users are, the content is delivered fast.|
|Rapid deployment||Using the Firebase CLI, you can get your app up and running in seconds. Command line tools make it easy to add deployment targets into your build process.|
|One-click rollbacks||Quick deployments are great, but being able to undo mistakes is even better. Firebase Hosting provides full versioning and release management with one-click rollbacks.|
How does it work?
Hosting gives your project a subdomain on the
domain. Using the Firebase CLI, you can deploy files from local
directories on your computer to your Hosting server. Files are served
over an SSL connection from the closest edge server on our global CDN.
In addition to static content hosting, Firebase Hosting offers lightweight configuration options for you to be able to build sophisticated Progressive Web Apps. You can easily rewrite URLs for client-side routing or set up custom headers.
Once you're ready to take a site to production, you can connect your own domain name to Firebase Hosting. We automatically provision an SSL certificate for your domain so all your content is served securely.
|Install the Firebase CLI||The Firebase CLI makes it easy to set up a new Hosting project, run a local development server, and deploy content.|
|Set up a project directory||Add files for your web app and add your static assets to your local
Hosting folder. You can then test your site locally by running
|Deploy your site||
When things are looking good, run
- Get Started with Hosting and deploy your web app or static assets.