next start
The Next.js command that runs a production server from the output of next build.
In more detail
It needs the full node_modules folder. The standalone output replaces it with a minimal server.js started with node server.js.
Related terms
- next build — The Next.js command that compiles the app for production and pre-renders every route it can.
- server.js — The small generated Node.js server file in the standalone output that serves the whole app.
- standalone output — A next.config setting that makes next build produce a self-contained folder with a minimal server.js and only the node_modules files it needs.
Taught in
- Containerized Deployment: Multi-Stage Docker Builds — Next.js 15 & Modern App Router Architecture