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

241
Visualizações
Automically set ip address of axios.post in react

I am using a load balancer and have several django projects running behind the load balancer. Therefore, the IP address of the axios.post and axios.get should be different depending on the local machine IP address in where the Django project is running.

The below works fine for using it on a single machine

I have a .env file with

REACT_APP_AXIOS_URL=http://127.0.0.1
console.log(process.env.REACT_APP_AXIOS_URL)
axios.post(`${process.env.REACT_APP_AXIOS_URL}`)

However, I would like that REACT_APP_AXIOS_URL to be fetched automatically instead of hardcoding it since there will be 10 machines behind the load balancer. How can I do that?

about 4 years ago · Juan Pablo Isaza
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