Deploy to Firebase

Deploy to Firebase is available only for PWA-built applications.

Preparation

For deployment, you need to prepare a project ID andAPI token.

How to get a project ID

  1. At Firebase Console, click Add project.

  2. The project ID is displayed in the red frame below.

How to get an API token

  1. Install Firebase CLI according to the Firebase CLI Guide.

  2. After installing the Firebase CLI, get the token with the following command.

    firebase login:ci

Register a deploy service

You are ready to add the Firebase infomation to Monaca. Please do as follows:

  1. From the Monaca Cloud IDE menu, go to Configure → Deploy Services.

  2. Click Add Deploy Service.

  3. Select Firebase and fill in the required information:

    • Config Alias: a unique identifier for each service.

    • API Token: API Token provided by Firebase.

    • Project ID: Project ID displayed on the Firebase console.

  4. Then, click Add.

Start deployment

Using the registered deployment service, we can start deploying the app to the Firebase.

  1. Please refer to Building for PWA for the build procedure.

  2. After the build is completed, navigate to the build result page.

  3. Execute the deployment from the build result page. Since the registered deployment services show up at the bottom of the page, click the services of your choice to start the distribution process.

See Also:

Last updated