Question · Next.js course · Module 1: Next.js Configuration

The npm run build Command

What does the npm run build (next build) command do in a Next.js project?

Answer options

  • Starts the development server, like npm run dev
  • Creates an optimized production version of the app in the .next/ folder
  • Installs the dependencies from package.json
  • Uploads the app files to a CDN server
Show the answer

Correct answer:

  • Creates an optimized production version of the app in the .next/ folder