Geovation/photos

View on GitHub
firebase.json

Summary

Maintainability
Test Coverage
{
  "firestore": {
    "rules": "firestore.rules",
    "indexes": "firestore.indexes.json"
  },
  "functions": {
    "predeploy": [
      "npm --prefix \"$RESOURCE_DIR\" run lint"
    ],
    "source": "functions"
  },
  "hosting": [
    {
      "target": "api",
      "public": "empty",
      "rewrites": [
        {
          "source": "/**",
          "function": "api"
        }
      ]
    },
    {
      "target": "md",
      "public": "empty",
      "rewrites": [
        {
          "source": "/**",
          "function": "hostMetadata"
        }
      ]
    },
    {
      "target": "app",
      "public": "build",
      "ignore": [
        "firebase.json",
        "**/.*",
        "**/node_modules/**"
      ],
      "rewrites": [
        {
          "source": "**",
          "destination": "/index.html"
        }
      ],
      "headers": [ 
        { 
          "source": "service-worker.js", 
          "headers": [ { "key" : "Cache-Control", "value" : "no-cache" } ]
        }
      ] 
    }
  ],
  "storage": {
    "rules": "storage.rules"
  },
  "emulators": {
    "functions": {
      "port": 5001
    },
    "firestore": {
      "port": 8080
    },
    "hosting": {
      "port": 5000
    },
    "pubsub": {
      "port": 8085
    },
    "ui": {
      "enabled": true
    }
  }
}