I want to remove my local server prefix from my REST API URLs (example, http://localhost:8080) when building for production (ng build --prod).
ng build --prod
I get that i
You don't need to hard code the API_URL as mentioned above just use your environment.prod.ts file. Set-:
It worked for me I guess, will work for you too.