firebase choose location code example
Example: change firebase region
//by default all functions will be deployed on US servers
//to change that for example for europe:
exports.api = functions.region('europe-west3').https.onRequest(app)
//by default all functions will be deployed on US servers
//to change that for example for europe:
exports.api = functions.region('europe-west3').https.onRequest(app)