firebaseのcloud functionsのregionを指定する
何も指定しないとデフォルトの us-central1
になる
東京リージョンにする場合は
exports.myStorageFunction = functions .region('asia-northeast1') .storage .object() .onFinalize((object) => { // ... });
上記のように region('asia-northeast1')
を追記する必要がある
Webのクライアント側でもregionを指定する必要があり
var functions = firebase.app().functions('asia-northeast1');
上記のようにfunctionsを取得する