Skip to content

reed build

Compile the project into a deployable static site.

sh
reed build [--dir <path>] [--content <path>] [--out <path>] [--strict-tokens] [--strict-components]

Compiles docs.json plus your content into a static site. See Build output for everything it writes.

Prerequisites: a prior successful reed prefetch on this machine, and a Corepack-resolvable package manager. Given those, build needs no network.

--dirpath

Project root. Defaults to the current directory.

--contentpath

Content directory. Defaults to <dir>/content.

--outpath

Output directory.

--strict-tokensbooleandefault: false

Escalate every warning except DS-D* to an error.

--strict-componentsbooleandefault: false

Escalate DS-D* design-system warnings to errors.

--out is written through a staged atomic replacement: the directory is never a mixture of old and new files, even if the build fails partway through.

An --out that overlaps a build input is refused. Pointing the output at your content directory would otherwise let a build consume what it just wrote.

Node 16.9 and later ship Corepack, but Node 25 and newer no longer bundle it by default. On such a machine build fails immediately and says so:

build failed: [reed] Corepack is required but not available on this machine — install/enable Corepack, then run `reed prefetch`.

This is a fast, specific failure rather than a silent fallback to the network.

REED_BUILD_TIMEOUT_MSenvdefault: 1800000

Ceiling for the site build, in milliseconds — 30 minutes by default.

REED_INSTALL_TIMEOUT_MSenvdefault: 900000

Ceiling for dependency installation, in milliseconds — 15 minutes by default.

Set either to 0 to remove its ceiling. These exist to turn a hang into an error, not to police slow builds. A negative or non-numeric value is rejected rather than ignored, so a typo cannot silently restore an unbounded build.