title: Angular CLI - Set Up production proxy for now deploying
body: <p>I am currently using <code>now.sh</code> for deploying my app. Recently, I decided to move the <code>baseUrl</code> for requests to a <code>proxy.config.json</code> file.</p>
  
  <pre><code>{
    "/api/*": {
      "target": "http://localhost:3000",
      "secure": false,
      "logLevel": "debug"
    }
  }
  </code></pre>
  
  <p>For deploying with <code>now.sh</code> I change the <code>scripts</code> in <code>package.json</code> to:</p>
  
  <pre><code>"start": "serve dist/ --single",
  "build": "ng build --prod",
  </code></pre>
  
  <p>so, first, I did a <code>ng build</code>.</p>
  
  <p>The thing is, I'm needing a different <code>target</code> for <code>proxy.config.json</code>, because I deployed an API and I want to use it in the production app</p>
  
  <p>I was thinking on having two files <code>proxy.config.dev.json</code> and <code>proxy.config.prod.json</code>, but I don't know if I can target a different proxy with the <code>cli</code>. The problem is that I'm using <code>serve</code> for production and not <code>ng serve</code> so <code>proxy-config</code> is not available.</p>
  
  <p>What do you suggest? How can I get to work it?</p>