Skip to content

Google Firebase

  • Using Google Firebase for hosting

Setup notes

  • Setting up hosting
    • Folder is "dist".
    • firebase.json should contain the following configuration. Documentation does not contain these notes. Results in an error. Firebase Issue 367
{
  "hosting": {
    "public": "dist",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ]
  }
}

Process

  1. Install firebase tools - npm install -g firebase-tools
  2. Login to firebase - firebase login
  3. Create project in firebase console.
  4. In project directory (Project/dist) - firebase init
  5. Select firebase project
  6. Select hosting
  7. Be sure to configure firebase.json correctly
  8. Test with firebase serve
  9. Deploy with firebase deploy
  10. Configure domain information.