Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

143
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda