What is the region story of Cloud Functions v2?

49 views
Skip to first unread message

Asko Kauppi

unread,
Oct 25, 2022, 10:24:38 AM10/25/22
to Firebase Google Group
Build-in parameters mentions that one could now require (hopefully also import?) the following:

- projectId
- databaseUrl
- storageBucket

I noticed that `locationId` is missing from this crowd. Is that on purpose?

I would dearly like to have access to it, within a Cloud Function, to use it as a region. Always found it weird that in Firebase, one defines where stuff should run not in configuration, but code itself. Based on this, v2 is not going to change that.

This is fine. If I am able to `import { locationId } from 'firebase/params'`, I'll be okay. Unfortunately, that doesn't work now for multiple reasons (which I can discuss separately - limiting this post to `locationId`).

Asko
Reply all
Reply to author
Forward
0 new messages