Skip to content

Deploy your Hyas Site to Google's Firebase Hosting

Firebase Hosting is a service provided by Google’s Firebase app development platform, which can be used to deploy a Hyas site.

Prerequisites

To follow this guide, you will need to have firebase-tools installed.

How to deploy

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

    firebase.json
    {
    "hosting": {
    "public": "public",
    "ignore": []
    }
    }
  2. Create .firebaserc at the root of your project with the following content:

    .firebaserc
    {
    "projects": {
    "default": "<YOUR_FIREBASE_ID>"
    }
    }
  3. Run your build command:

    Terminal window
    npm run build
  4. Deploy using the command:

    Terminal window
    firebase deploy

More Deployment Guides