Learn how to self-host Next.js applications outside of Vercel. The guide covers deploying to both servers and serverless functions, detailing the setup required for production readiness, including image optimization, caching, CDN configuration, middleware, and redirect and rewrite configurations. It also discusses the tradeoffs between server and serverless deployments and provides tips for efficient server management.
Table of contents
Deploy Next.js to servers or serverless functions?Deploy to serverless functionsDeploy to serversJoin the conversationSort: