title: Hosting a Google Cloud Run Django app via Firebase
body: <p>I'm hosting a Django app in the cloud using Google Cloud Run, and I'm trying to work out how to get a few subdomains working right using Firebase. Let's imagine I want it all to be working off of mydomain.com. Here's what I want to do:</p>
  <p>I want api-dev.mydomain.com to point to cloud-run-domain.app/api
  and admin-dev.mydomain.com to point to cloud-run-domain.app/admin</p>
  <p>I've set up targets using:</p>
  <pre><code>firebase target:apply hosting admin admin-site-in-firebase
  firebase target:apply hosting api api-site-in-firebase
  </code></pre>
  <p>Here's my firebase.json (with the api-dev portion stripped out just for clarity):</p>
  <pre><code>  {
      &quot;hosting&quot;: {
        &quot;target&quot;: &quot;admin&quot;,
        &quot;rewrites&quot;: [{
          &quot;source&quot;: &quot;/admin/&quot;,
          &quot;run&quot;: {
            &quot;serviceId&quot;: &quot;what_I_called_my_cloud_run&quot;,
            &quot;region&quot;: &quot;us-east1&quot;
          }
        }]
      }
    }
  </code></pre>
  <p>Sadly, it's not quite doing the right thing. It's showing a page not found error. I sense I'm close, but still a bit farther away than I'd like. Any pointers super helpful!</p>