How to deploy next js / node application?

I’m working on a full-stack project where for front-end I use next.js application while for api I use node / express server. frontend and backend operate on different ports. My application is configured as in the picture:
enter image description here

I’m new to next js and this would be of great benefit to me