I build the react app (which was created using create-react-app) using npm run build command. I added "homepage":"./" to the package.json file and build the project. (But I am not sure what should be written in homepage in the package json file)
Then I copied what was inside build folder to nginx's HTML folder after creating a new folder named 'sample' inside the HTML folder in nginx.
Then in the browser, I opened the URL localhost:81/sample/, but it's not working.
can someone please tell me the step by step process that I should follow to host my react app in nginx