我修改了firebase-tools(https://github.com/firebase/firebase-tools),以便我可以将函数部署到除us-central1之外的其他区域 . 由于谷歌 Cloud 平台支持除us-central1之外的其他区域,我认为这样可以正常工作 .

部署europe-west1有效 .

我现在让每个功能在谷歌 Cloud 控制台中出现两次(一次为us-central1,一次为euro-west1) . 我想知道这两个函数中哪一个会被firestore写入触发 . 事实证明,欧洲 - 西部1号功能每次都被触发 . 出于好奇,我删除了europe-west1函数,看看会发生什么 . 之后,us-central1功能不再被触发 .

Why was the eu function preffered for excecution?

Why is the us function no longer working?