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

216
Views
Create React App - can you configure api calls based on evironment?

If I have 3 urls for an api:

http://www.xxxx.dev
http://www.xxxx.test
http://www.xxxx.prod

Is there a way in React or can React recognise the environment for api calls for example when I call:

If I am on dev it calls

fetch('http://www.xxxx.dev')

But when I am on different environments in can call the api url for that environment?

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