title: Angular pwa, how can I make http-server (running on localhost:8080) to work with a nodejs server running on localhost:3333?
body: <p>When I serve the web-app on port 3330, I can make the webapp working on port 3333 using --proxy ./src/proxy.config.json, but I don't know how to make http-server to make to work at the same way</p>
  <pre><code>&quot;start&quot;: &quot;ng serve -o --port 3330 --watch --proxy-config ./src/proxy.config.json&quot;,
  &quot;pwa&quot;: &quot;http-server -p 8080 -c-1 dist/satoshi-pwa --proxy http://localhost:3333&quot;,
  </code></pre>
  <p>proxy.config.json:</p>
  <pre><code>{
    &quot;/api&quot;: {
      &quot;target&quot;: &quot;http://localhost:3333&quot;,
      &quot;secure&quot;: false,
      &quot;changeOrigin&quot;: true,
      &quot;pathRewrite&quot;: {
        &quot;^/api&quot;: &quot;/&quot;
      }
    }
  }
  </code></pre>
  <p>environment.ts:</p>
  <pre><code>export const environment = {
    production: true,
    apiUrl: 'http://localhost:3333/api'
  };
  </code></pre>