Get started with App Hosting

With an existing Next.js or Angular app (Next.js versions 13.5.x+or Angular 18.2.x+)in a GitHub repository, getting started withApp Hosting can be asstraightforward as creating anApp Hosting backend and then starting arollout with a push to your live branch. If you don't have an app, use one ofour sample apps to walk through the steps described in this guide.

This guide describes how to set upApp Hosting in theFirebase console toautomatically deploy every time a new commit is made to a GitHub repository. Atthe end of this flow you'll have a live Next.js or Angular example app that isredeployed every time you commit a new change to your GitHub repository'smain branch.

Though this guide focuses on the recommendedFirebase console flow, there areother ways todeploy,including using theFirebase CLI to deploy local code without a GitHubconnection.

Step 1: Fork the demo repository

Visithttps://github.com/FirebaseExtended/firebase-framework-tools and selectFork.

Step 2: Create anApp Hosting backend

In theFirebase console, openApp Hostingand selectGet started. You'll need to upgrade to the Blaze plan to use AppHosting.

Note: If you already have created at least one backend, selectCreate backend.

A screenshot of App Hosting backend setup.

Follow the prompts to complete these steps:

SelectFinish and deploy.

Step 3: View the deployed app

When you create a backend, Firebase gives you a no-cost subdomain where endusers can visit your web app. Its format isbackend-id--project-id.us-central1.hosted.app.

In theBackend information row in the dashboard for your backend, selectthe link to your live backend to view your new website:

A screenshot of the backend information row with the live app link    emphasized.

Note: After creating your backend, it may take around five minutes for yourapp's URL to work.

Step 4: Trigger a rollout by pushing a change

Once your backend is created and you have a live URL, you cantrigger the rollout of a new version of your web app whenever you pushchanges into the live branch of your GitHub repository. To perform atest of yourApp Hosting setup:

  1. In your fork of the demo GitHub repository, navigate to the source of thedemo app home page, make any recognizable edit you like, and then push yourchange to the main branch. To find your home page:

    • Next.js:/starters/nextjs/basic/src/app/page.tsx
    • Angular:/starters/angular/basic/src/app/pages/home/home.component.html
  2. In theFirebase console, monitorApp Hosting asyour new change is rolled out to production. When the rollout is complete,you can view your change in the app's home page.

Next steps

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-05 UTC.