During development, my server is running on localhost. So my code is:
this.http.post ('http://localhost:8000',body).subscribe(...
But after deployment, my server is running on another IP (e.g 128.3.130.61) This remote PC contains also the 'dist' folder.
I want the address in http.post to be always the server's one.
How can I do it without running "ng build" ?
Thank you, Zvika