title: Is there a programmatic way to detect what region a Cloud Function runs in?
body: <p>How can one detect the region of a Firebase project?</p>
  
  <p>It looks like it's exposed at:</p>
  
  <pre><code>&gt;&gt;&gt; firebase.app().services_.functions['[DEFAULT]'].region_ 
  'us-central1'
  
  &gt;&gt;&gt; firebase.app().functions().region_
  'us-central1'
  </code></pre>
  
  <p>This does not look to be part of the <a href="https://firebase.google.com/docs/reference/js/firebase.functions.Functions" rel="nofollow noreferrer">public API</a></p>
  
  <p>Is the <code>region_</code> property something one can rely on?  Is there an API call that otherwise exposes it?</p>