Deploy your Astro Site to Google’s Firebase Hosting

Firebase Hosting is a service provided by Google’s Firebase app development platform, which can be used to deploy an Astro site.

  1. Make sure you have firebase-tools installed.

  2. Create firebase.json and .firebaserc at the root of your project with the following content:


      "hosting": {
        "public": "dist",
        "ignore": []


      "projects": {
        "default": "<YOUR_FIREBASE_ID>"
  3. After running npm run build, deploy using the command firebase deploy.

More Deployment Guides

Filter by deploy type