I cannot deploy my firebase cloud functions to specific region. This is my code.
exports.helloWorld1 = functions.region('asia-northeast1').https.onRequest((request, response) => {
response.send("Hello from Firebase!");
});
exports.helloWorld2 = functions.region('us-central1').https.onRequest((request, response) => {
response.send("Hello from Firebase!");
});
exports.helloWorld3 = functions.region('europe-west1').https.onRequest((request, response) => {
response.send("Hello from Firebase!");
});
exports.helloWorld4 = functions.region('us-east1').https.onRequest((request, response) => {
response.send("Hello from Firebase!");
});
Then I ran deploying the code. This is the result.
How could I define cloud functions' region correctly?
This case is different from use region other than us-central1 for Google Cloud Functions because these functions are deploying on Firebase CLI, not general function executed from gcloud.
#I found important information.
https://firebase.google.com/docs/functions/locations#http_and_client_callable_functions