Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda