title: Firebase: How do you add a vanity URL to a cloud function?
body: <p>Was briefly mentioned <a href="https://stackoverflow.com/questions/45850375/use-custom-domain-for-google-cloud-function">here</a>, but right now I'm at the point where I've connected my GCP project to Firebase, set up a custom domain under Firebase hosting, but on the functions page of the Firebase dashboard, there doesn't seem to be a way to set the vanity URL on a cloud function.</p>
  
  <p>My firebase.json (at the root of my project) looks like :</p>
  
  <pre><code>{
      "hosting": {
          "public": "public",
          "rewrites": [
              { "source": "/helloWorld", "function": "helloWorld" },
              { "source": "/progress", "function": "progress" }
          ]
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/QwSxA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QwSxA.png" alt="enter image description here"></a></p>