Configuration

Webpack CLI selection

Explicitly selects Webpack rather than default Turbopack; review custom configuration. Source: https://nextjs.org/docs/app/guides/upgrading/version-16

Formal Syntax & Structure

nextjs syntaxnextjs
next build --webpack

Working Example

Example Snippetnextjs
{"scripts":{"dev":"next dev","build":"next build","build:webpack":"next build --webpack","start":"next start"}}
Next.js Reference