{
  "hosting": [
    {
      "target": "production",
      "public": "dist",
      "cleanUrls": true,
      "trailingSlash": false,
      "headers": [
        {
          "source": "/**",
          "headers": [
            {
              "key": "Cache-Control",
              "value": "no-cache, no-store, must-revalidate"
            }
          ]
        },
        {
          "source": "**/*.@(jpg|jpeg|gif|png|mp4|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
          "headers": [{ "key": "Cache-Control", "value": "max-age=31536000" }]
        }
      ],
      "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
      "rewrites": [{ "source": "/", "destination": "/index.html" }]
    },
    {
      "target": "development",
      "public": "dist",
      "cleanUrls": true,
      "trailingSlash": false,
      "headers": [
        {
          "source": "/**",
          "headers": [
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            },

            {
              "key": "Cross-Origin-Embedder-Policy",
              "value": "credentialless"
            },
            {
              "key": "Cross-Origin-Embedder-Policy",
              "value": "credentialless"
            },
            { "key": "Cross-Origin-Opener-Policy", "value": "same-origin" }
          ]
        },
        {
          "source": "**/*.@(jpg|jpeg|gif|png|mp4|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
          "headers": [{ "key": "Cache-Control", "value": "max-age=31536000" }]
        }
      ],
      "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
      "rewrites": [{ "source": "/", "destination": "/index.html" }]
    }
  ]
}
