Next.js can be installed on any server that can run Node.js by running next build && next start.It has built-in support for running in serverless mode when deploying to Vercel, and the Netlify team has written an adaptor for serverless deployment to their service.
Full article