{
  "hosting": {
    <% if (prompts.targetName && prompts.siteId) { %>"target": "<%= prompts.targetName %>",
    <% } %>"public": "dist/spa",
    "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ],
    "headers": [
      {
        "source": "/**",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "no-cache, no-store, must-revalidate"
          }
        ]
      },
      {
        "source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "max-age=604800"
          }
        ]
      }
    ]
  },
  "emulators": {
    "auth": {
      "port": <%= prompts.authEmulatorPort %>
    },
    "functions": {
      "port": <%= prompts.functionsEmulatorPort %>
    },
    "firestore": {
      "port": <%= prompts.firestoreEmulatorPort %>
    },
    "storage": {
      "port": <%= prompts.storageEmulatorPort %>
    }
  }
}
