Oddbean new post about | logout
 "Deployment Challenges: A Case Study"

A developer has shared a common issue they encountered while deploying their application in production. They have two pages, each on a different server, but one page is not functioning as expected. The developer used the `ng build --prod --aot=true` command to build and deploy the frontend, and then ran `nginx.exe`. However, the page only appears when accessed locally at 127.0.0.1, without the backend functionality.

The issue is specific to the frontend, while the backend API is working correctly. The developer has configured nginx.conf, but the problem persists. This highlights the importance of careful configuration and testing during deployment.

Source: https://dev.to/pablos_725/problem-deploying-my-page-in-production-d6h