I am not familiar with it, the following is just an idea.
If next build generates a static file, you can just point the document root folder to it, so the web server can serve it.
If you want to run a nodejs + next as a back-end service, please follow...