Commands.app

next build (standalone)

Build

Build Next.js app with standalone output

Examples
Common usage examples

Build with standalone output in next.config.js

next build
Notes
  • Add 'output: "standalone"' in next.config.js
  • Creates minimal Node.js server for deployment
  • Ideal for Docker containers
Related Commands
You might also find these useful