When you make a refresh in a react app on any page apart from root, if you are facing 404 add the below line of code in your nginx configuration file.
location / {
try_files $uri /index.html;
}
When you make a refresh in a react app on any page apart from root, if you are facing 404 add the below line of code in your nginx configuration file.
location / {
try_files $uri /index.html;
}
I created Framework X to be all about substance over style!. A well-oiled machine for API development. Please check it out. All and Any feedback is appreciated.
Know More