December 22, 2021

#nginx #react #tricks

How to remove 404 in internal pages in React Nginx

When you make a refresh in a react app in any page apart from root, if you are facing 404 add the below line of code in your nginx configuration file.

Reading time: less than a minute