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
At Firebase Console, click Add project.
The project ID is displayed in the red frame below.
How to get an API token
Install Firebase CLI according to the Firebase CLI Guide.
After installing the Firebase CLI, get the token with the following command.
Register a deploy service
You are ready to add the Firebase infomation to Monaca. Please do as follows:
From the Monaca Cloud IDE menu, go to Configure → Deploy Services.
Click Add Deploy Service.
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.
Then, click Add.
Start deployment
Using the registered deployment service, we can start deploying the app to the Firebase.
Please refer to Building for PWA for the build procedure.
After the build is completed, navigate to the build result page.
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