title: Firebase Proxy (reverse proxy)
body: <p>I recently discovered <a href="https://www.netlify.com/blog/2016/03/10/go-static-without-losing-your-server/" rel="nofollow noreferrer">Netlify’s proxying feature</a>, and it’s exactly the functionality I’m looking for. However, our team is heavily invested in <strong>Firebase</strong>, and adopting another provider is something higher-ups may not want to do.</p>
  <p>My Netlify <code>_redirects</code> file looks like this</p>
  <pre><code>/ / 200
  /* https://my-app.firebaseapp.com/:splat 200
  </code></pre>
  <p>So, is it possible to do a similar proxy with Firebase?
  I want the base path <code>/</code> to route to <code>index.html</code>, but all other paths <code>/*</code> to proxy to another server <code>my-app.firebaseapp.com</code>.</p>
  <p>I've tried using <a href="https://firebase.google.com/docs/hosting/full-config#redirects" rel="nofollow noreferrer">Redirects</a> and <a href="https://firebase.google.com/docs/hosting/full-config#rewrites" rel="nofollow noreferrer">Rewrites</a>, but the former requires a <code>3xx</code> code and changes the url, and the later requires local files. I have a hunch the solution is to use Functions, but I'm not exactly sure.</p>