我在两个不同的位置创建了2个项目。例如us-central1和Asia-northeast1。 现在,对于这两个不同的项目,我想在各自的区域中部署云功能。
const function_location = 'asia-northeast1';// I want a region of the project selected through npm
exports.Addweblogs = functions.region(function_location).firestore.document(............
如何在环境变量或process.env中的某个位置获取项目区域值,以便可以使用它在云函数中设置该区域。
REact_APP_API_KEY = xyz
REact_APP_AUTH_DOMAIN = xyz
REact_APP_DATABASE_URL = xyz
REact_APP_PROJECT_ID = xyz
REact_APP_STORAGE_BUCKET = xyz
REact_APP_MESSAGING_SENDER_ID = xyz