title: Firebase hosting exception on rewrites property
body: <p>In Firebase I wan't to route all URLs, except "/docs", to index.html</p>
  
  <p>But it's not working. The exception is not considerated. All URLs are routing to index.html.</p>
  
  <p>Thats my firebase.json:</p>
  
  <pre><code>{
    "hosting": {
      "public": "target",
      "rewrites": [
      {
        "source": "/docs",
        "destination": "/docs.html"
      },{
        "source": "**",
        "destination": "/index.html"
      }],
      "headers": [
        {
          "source": "**/*",
          "headers": [
            {"key": "X-Content-Type-Options", "value": "nosniff"},
            {"key": "X-Frame-Options", "value": "DENY"},
            {"key": "X-UA-Compatible", "value": "ie=edge"},
            {"key": "X-XSS-Protection", "value": "1; mode=block"}
          ]
        },
  
        {
          "source": "**/*.@(css|html|js|map)",
          "headers": [
            {"key": "Cache-Control", "value": "max-age=3600"}
          ]
        }
      ],
      "cleanUrls": true,
      "trailingSlash": false
    },
  
    "rules": "./firebase.rules.json"
  }
  </code></pre>
  
  <p>And that's my "target" folder</p>
  
  <p><a href="https://i.stack.imgur.com/6XoV6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6XoV6.png" alt="target folder"></a></p>