I am using React Router for routing for a multi-page website. When trying to go to a sub page directly https://test0809.herokuapp.com/signin you\'d get a \"404 Not Found -ng
Just simply add try_files $uri $uri/ /index.html; to location / block in NGINX configuration file like this:
try_files $uri $uri/ /index.html;
location /
server { listen 80; server_name localhost; location / { root /build; index index.html; try_files $uri $uri/ /index.html; } }