I\'m currently using Google Cloud Function to build up my restful API. However, I\'ve found that it\'s slow because the my Google-Cloud-Function server is on \"us-central\",
If you are using the Firebase SDK:
Taken from the documentation - https://firebase.google.com/docs/functions/manage-functions#modify
// before
const functions = require('firebase-functions');
exports.webhook = functions
.https.onRequest((req, res) => {
res.send("Hello");
});
// after
const functions = require('firebase-functions');
exports.webhookAsia = functions
.region('asia-northeast1')
.https.onRequest((req, res) => {
res.send("Hello");
});