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

178
Views
Dynamic "proxy" attribute configuration in package.json (npm)

On my package.json file, I currently have this config:

"proxy": "http://localhost:5000",

The issue is that I'm adding Docker to this project, so I need that this proxy field is http://localhost:5000 when engineers run the project via npm start, and http://host.docker.internal:5000 when they're using Docker.

The first thing that came to mind was to add an environment variable, like:

"proxy": "$HTTP_PROXY",

But it's simply not working, I'm getting this:

When "proxy" is specified in package.json it must start with either http:// or https://
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!