Relative Content

Tag Archive for angularroutesdeploymentproxy

HTTP Requests Not Reaching My Server in Angluar/Node.js

I’m deploying an Angular app with a Hapi server remote MySQL Database on the backend and statically hosted Angular build files to render the frontend. When run locally, all http routes are sent to localhost/api/endpoint and return data via a proxy as expected. But when I deploy the app publically, although my deployment is successful and the server appears to listening on the correct port & connected to the database, the live app’s URL’s load only once and render the frontend but with 404 errors on the console for the HTTP request, and then disappear completely on refresh.