Commands.app

next build

Build

Build Next.js application for production

Examples
Common usage examples

Build production bundle

next build

Build using package.json script

npm run build
Notes
  • Optimizes code for production
  • Creates .next folder with build output
  • Run before deploying
Related Commands
You might also find these useful