I have had previous experience deploying my react app to firebase and hosting it with that but I have no clue how to deploy my react app to an nginx web server since this is a project with a friend and they are hosting the web server.
If you are using create-react-app or nextjs, you can build your app and deploy the static files.
npm run build
npm start
If you need something like node running for auth or something else, you can use node express as the server and then nginx also. Lots of discussions about pros and cons.
https://www.quora.com/Should-I-host-a-node-js-project-without-nginx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.