When installing in plesk, first, follow the documentation by about base url and admin url and all those configurations. Then upload the files to httpdocs, make sure you have installed nodejs and enable it for the domain.
Run yarn install. followed by yarn run build (be sure to be in httpdocs directory, otherwise you will get errors.)
Set up the nodejs as the attached image.
Install pm2 then run pm2 start npm --name "project_name" -- start (where "project_name" is any name you want to give your project.)
You can then check the status by pm2 status
The most critical step is to
1. Disable Proxy mode in the Apache & nginx
2. Add the below code in Additional nginx directives
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass
http://127.0.0.1:3001
}
3001 in the code is the port number in the package.json