title: How to work with two different APIs with React?
body: <p>I need to test one endpoint inside an API, but I already work with one API, and I wouldn't like to change all my calls targeting just the new API.</p>
  <p>I don't know event if it's possible, but is there some way to define more than one <code>proxy</code> inside <code>package.json</code>?</p>
  <p>Is there some way to pass auth keys inside <code>package.json</code>?</p>
  <p>The main server, is a local server, with a proxy:</p>
  <pre><code>&quot;proxy&quot;: {
      &quot;/api&quot;: {
        &quot;target&quot;: &quot;http://localhost:3001/proxy&quot;,
        &quot;changeOrigin&quot;: true,
        &quot;pathRewrite&quot;: {
          &quot;^/api&quot;: &quot;&quot;
        }
      }
    },
  </code></pre>
  <p>Currently I'm using <code>axios</code> to make API calls, and the project was started with <code>create-react-app</code>.</p>