The api server and client both have routes /login and /register. This works in dev mode, when proxying to the api server happens locally. It does not work in production, when nginx is proxying to the api server.
In production, navigation within the client to /login works, since that is happening locally. But try reloading the /login page and you get an error. The reload requests the page from nginx, but nginx proxy's that path to the api server.
We need to change the name of those paths either in the client or the api.
The api server and client both have routes /login and /register. This works in dev mode, when proxying to the api server happens locally. It does not work in production, when nginx is proxying to the api server.
In production, navigation within the client to /login works, since that is happening locally. But try reloading the /login page and you get an error. The reload requests the page from nginx, but nginx proxy's that path to the api server.
We need to change the name of those paths either in the client or the api.