I installed serve globally by npm install -g serve command serve -s build is not running "Serve" is not recognized as an internal or external command I have successfully build the react Application. I am a bit confused what to do after build. serve is not working. also please answer what to do with server.js file in react project and how it helps in deployment
my application is running properly on local. I want it to run on my domain also.
What does your build command look like? What does your file structure look like? What does your server.js file look like?
Are you using CRA? Are you using NextJS?
Girish Patil
Full-stack engineer
Can you provide a bit more details?
If the build is successful. Check out the build directory and ask your server to use that directory to serve files.