With this method you can package any type of Next.js App including Apps w/ SSR, API Routes, Server Actions and Proxy (Middleware).

Prerequisites

Obviously Git

Your Next.js App remote Repository w/ package.json and package-lock.json

Your NixOS Server