Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
Globally set region to europe-west1 for a httpsCallable when initializing firebaseApp, instead of us-central1

Is there a way to globally set the region from which an httpsCallable function is being called. Right now I initialize my app like this:

const app = firebase.initializeApp(firebaseConfig)
app.functions('europe-west1')

What is then created is the firebase app object. When console logging the app variable it gives me back an object with the services_ property. In this property there is a function property named europe-west1 as a service. However, when then calling a function that looks like this:

const deleteUserCloudFunction = firebase
    .functions()
    .httpsCallable('deleteUser')

another property is created within the functions service, named [DEFAULT] which has the 'us-central1' region specified. How can I change this by default specified region to 'europe-west1'?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If I correctly understand your question, you should do:

var app = firebase.initializeApp(config);
var functions = app.functions('europe-west1');

const deleteUserCloudFunction = firebase
    .functions()
    .httpsCallable('deleteUser')

More details in the documentation.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!