My task is to update old website with new. My client use VPS with Plesk and his old website is written on html, css and js. So I have created the updated version of it using Next Js. Then I created temporary free domain and deployed Next app, so everything is working fine. Now I need to run this next app under primary domain name.
So I tried simply switch domains between these two projects, but this didn’t work. I tried to switch old website root folder to next js root folder – this also didn’t work. Then I tried to add node js to the old website project, filled document root, application root and application startup file data with data from my working next js project, runned build and start commands, but recieved:
Error: listen EADDRINUSE: address already in use :::3000
For deploying I have used this tutorial:
https://kdaws.com/learn/building-and-running-next-js-apps-on-plesk/
Please, give me suggestion, how to safely run next app on primary domain.
mpty room. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.