is there a way to specify the Region/Zone where my firebase functions will be deployed.
Actually i didn't found anything about that in the documentation and my functions are always deployed to us-central1 but i want to have it on eu-central1...
Is it possible to set it in the Firebase - Config - File?
{ "database": { "rules": "database.rules.json" }, "hosting": { "public": "public", "rewrites": [ { "source": "**", "destination": "/index.html" } ] } }
I also had a look on the cli options but i did not found anything there.
The Firebase Project itself is correctly set to an european Region o.O
thanks in advance
firebaser here
Update (2018-07-25):
It is now possible to specify the region for your Cloud Functions in Firebase you specify that region in your code and deploy the change. E.g.:
exports.myStorageFunction = functions .region('europe-west1') .storage .object() .onFinalize((object) => { // ... });
For full details see the Firebase documentation on Cloud Functions locations (from where I got the above snippet) and modifying the region of a deployed function.
From docs: https://firebase.google.com/docs/functions/locations
Now available in the following regions:
// before const functions = require('firebase-functions'); exports.webhook = functions .https.onRequest((req, res) => { res.send("Hello"); }); // after const functions = require('firebase-functions'); exports.webhookEurope = functions .region('europe-west1') .https.onRequest((req, res) => { res.send("Hello"); });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With