nextdeploy build
Execute the Next.js production build and run NextCore route analysis and manifest generation.
Usage
bash
nextdeploy build [flags]Flags
| Flag | Type | Description |
|---|---|---|
--skip-next-build | boolean | Skip running npm run build and only perform NextCore introspection on existing .next build output. |
--output-dir | string | Custom destination for NextDeploy build artifacts (default: .nextdeploy). |
Phases
- Next.js Standalone Build: Executes
next buildinside the project to generate client chunks, standalone server artifacts, and page manifests. - NextCore Introspection: Inspects
.next/server/pages-manifest.json,app-paths-manifest.json, and middleware manifests. - Route Classification: Classifies every route as Static (
○), SSG (●), Dynamic SSR (ƒ), or API (λ). - Metadata Generation: Writes
.nextdeploy/metadata.jsoncontaining the payload required fornextdeploy ship.