Problem Statement
What command builds a Next.js application for production?
Explanation
The next build command creates an optimized production build of your Next.js application, generating static HTML for pages using SSG, bundling and minifying JavaScript and CSS, optimizing images and fonts, and creating a .next directory with all production assets. After building, run next start to serve the production build locally for testing, or deploy the .next directory to your hosting platform. The build process runs getStaticPaths and getStaticProps for static pages, analyzes which routes can be statically generated, and outputs a build summary showing page sizes and rendering types.