CLI
Next.js build command
Prepares production application output. A successful build alone does not establish route, cache or authorization correctness.
Formal Syntax & Structure
nextjs syntaxnextjs
next build [directory]Working Example
Example Snippetnextjs
npm run build