title: Different proxy config based on environment in Angular 2 CLI
body: <p>How can I declare 2 different proxy URLs for development and production environments in Angular 2 CLI project? For example, while in development mode, I would like to use </p>
  
  <pre><code>{
      "/api/*": {
          "target": "http://localhost:3000",
          "secure": false
      }
  }
  </code></pre>
  
  <p>but in production mode, I will use</p>
  
  <pre><code>{
      "/api/*": {
          "target": "http://api.exampledomain.com",
          "secure": false
      }
  }
  </code></pre>