next build

The Next.js command that compiles the app for production and pre-renders every route it can.

In more detail

Its output lists each route with a symbol: an empty circle for static, a filled circle for pages pre-rendered with generateStaticParams, and ƒ for dynamic routes rendered on demand. Results go into the .next folder.

Example

npx next build

Related terms

Taught in

References