Home > Blockchain >  Firebase hosting test hosting configuration settings
Firebase hosting test hosting configuration settings

Time:07-11

I am looking for a method to test the current provided hosting configuration for Firebase Hosting, the firebase.json file seems to deploy correctly, but there doesn't seem to be a way to see this configuration on the cloud once its deployed:

firebase.json

{
  "hosting": {
    "public": "dist",
    "rewrites": [
      {
        "source": "/api/v1/**",
        "function": "webApp"
      },
      {
        "source": "**",
        "destination": "/index.html"
      }
    ],
    "headers": [
      {
        "source": "**/*",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "no-cache"
          },
          {
            "key": "Content-Security-Policy",
            "value": "frame-ancestors 'self' *://*.hellosign.com"
          }
        ]
      }
    ]
  },
  "emulators": {
    "functions": {
      "host": "0.0.0.0",
      "port": 5001
    },
    "firestore": {
      "host": "0.0.0.0",
      "port": 8080
    },
    "database": {
      "host": "0.0.0.0",
      "port": 9000
    },
    "hosting": {
      "host": "0.0.0.0",
      "port": 5000
    },
    "pubsub": {
      "host": "0.0.0.0",
      "port": 8085
    },
    "auth": {
      "host": "0.0.0.0",
      "port": 9099
    },
    "ui": {
      "enabled": true,
      "host": "0.0.0.0",
      "port": 4000
    }
  },
  "firestore": {
    "rules": "firestore.rules"
  }
}

CodePudding user response:

The documentation states:

You can check the deployed firebase.json content using the ","pageSize":1}" rel="nofollow noreferrer">Hosting REST API.

You will need to use that API to check that your release matches your expectations. You won't be able to see this in the console. If console access what you're looking for, then file a feature request with Firebase support.

  • Related