Here is when reverse proxy servers come to the rescue.
A reverse proxy server retrieves resources on behalf of a client from one or more servers. When going to production, our app should definitely be running behind a reverse proxy server. There are multiple choices out there, probably one of the best options is NGINX Reverse Proxy.
Find in the below flowchart a representation of the new architecture for our app: