Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.02 KB

deploy-to-firebase.md

File metadata and controls

54 lines (38 loc) · 1.02 KB

Google Firebase

Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. We cover the essentials so you can monetize your business and focus on your users.

First, you need to make a few preparations:

Step 1: Getting Firebase

  1. Make sure you have firebase-tools installed.

  2. Create a Firebase account here.

  3. Run firebase login and fill in your Firebase credentials:

firebase login

Step2: Preparing to deploy

Build a site by running this command in your project's root directory:

gridsome build

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

firebase.json:

{
 "hosting": {
   "public": "./dist",
   "ignore": []
 }
}

.firebaserc:

{
 "projects": {
   "default": "<YOUR_FIREBASE_ID>"
 }
}

Step 3: Deploying

Deploying Your Site

firebase deploy