How to deploy Nuxt JS application with Nginx and PM2

Deploy Nuxt JS application in Static or Server Side Rendering (SSR) modes with Nginx and PM2.