title: How to make proxy.conf.json not working in Angular 14?
body: <p>I made a new project with:</p>
  <pre><code>ng new angular proxy
  </code></pre>
  <p>This created the Angular project at version ~12.2.0.</p>
  <p>Configuring the proxy as per this page:
  <a href="https://angular.io/guide/build#proxying-to-a-backend-server" rel="nofollow noreferrer">https://angular.io/guide/build#proxying-to-a-backend-server</a></p>
  <p>No <code>src/proxy.conf.json</code> file:</p>
  <pre><code>{
    &quot;/api&quot;: {
      &quot;target&quot;: &quot;http://localhost:3000&quot;,
      &quot;safe&quot;: false,
      &quot;logLevel&quot;: &quot;info&quot;
    }
  }
  </code></pre>
  <p>No <code>angular.json</code> file:</p>
  <pre><code>…
  &quot;architect&quot;: {
    &quot;serve&quot;: {
      &quot;builder&quot;: &quot;@angular-devkit/build-angular:dev-server&quot;,
      &quot;options&quot;: {
        &quot;browserTarget&quot;: &quot;your-application-name:build&quot;,
        &quot;proxyConfig&quot;: &quot;src/proxy.conf.json&quot;
      },
  …
  </code></pre>
  <p>When running, the proxy was applied as expected you can see in the line:</p>
  <pre><code>Generating browser application packages (phase: configuration)...[HPM] Proxy created: /api -&gt; http://localhost:3000
  </code></pre>
  <p>Then, when applying the update to Angular 14.1.1 (by applying the command <code>ncu -u</code>), and running ng serve, the proxy is no longer applied (no longer appears on the top line):</p>
  <pre><code>rodrigocarlstrom@MBP-de-Rodrigo angular-proxy %ng serve
  ✔ Completed browser app package generation.
  
  Initial chunk files | Names | gross size
  supplier.js | seller | 2.04 MB |
  polyfills.js | polyfills | 315.77kB |
  styles.css, styles.js | styles | 207.84kB |
  main.js | main | 51.68kB |
  runtime.js | runtime | 6.52kB |
  
                        | Initial total | 2.61 MB
  
  Build on: 2022-07-30T17:10:02.713Z - Hash: 79908e74f278afa9 - Time: 12167ms
  
  ** Angular Live Development Server is listening on localhost:4200, open your browser at http://localhost:4200/ **
  
  
  ✔ Successfully compiled.
  </code></pre>
  <p>Why proxy to work in Angular 14.1.0? What can I do to resolve it?</p>
  <p>Codes are at <a href="https://github.com/RodrigoCarlstrom/angular-proxy" rel="nofollow noreferrer">https://github.com/RodrigoCarlstrom/angular-proxy</a></p>
  <p>Angular 12.2.0: main branch
  Angular 14.1.0: branch development</p>
  <p>Add that help!</p>