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;
}
If you find my content helpful and want to see more quality articles, tools, and resources, consider supporting my work through GitHub Sponsors. Your support helps me dedicate more time to creating free, open-source content.
Become a sponsor