Skip to content

Cap the Node engine below 27 for App Platform builds - #162

Merged
HDauven merged 1 commit into
mainfrom
fix/node-engine-cap
Nov 2, 2026
Merged

HDauven merged 1 commit into
mainfrom
fix/node-engine-cap

Conversation

@GeorgianDusk

Copy link
Copy Markdown
Contributor

Summary

The 2026-11-02 forced rebuild of the dusk-docs App Platform app failed before building anything:

[INFO] Downloading and extracting Node v27.0.0
ERROR: failed to build: exit status 22

package.json allows node >=22.12.0, and the buildpack now resolves that to v27.0.0. Node 27 is not released: nodejs.org lists only a v27 alpha, and the v27.0.0 tarball returns 404. Every docs deploy fails until the range is capped.

This changes engines.node to >=22.12.0 <27 in package.json and the matching root entry in package-lock.json. The buildpack then picks the newest Node 26 release (26.13.0, tarball available), the line the last successful build (26 Oct) used. CI is unaffected: it reads .nvmrc (22.12.0).

Validation

  • Only engines.node changes, in both files. No dependency or lockfile resolution changes.
  • Range check: 27.0.0 and 27.0.0-alpha are excluded; 26.13.0 and 22.12.0 are in range; the v26.13.0 linux-x64 tarball returns 200.
  • After merge: force a rebuild of dusk-docs and confirm the build log resolves a v26.x Node and the deploy goes live.

🤖 Generated with Claude Code

The DigitalOcean App Platform Node buildpack resolves `>=22.12.0` to
Node v27.0.0, which is not released yet (only a v27 alpha is listed and
the v27.0.0 tarball returns 404), so every forced rebuild of dusk-docs
fails while downloading Node. Capping the range at `<27` makes the
buildpack pick the newest Node 26 release, the line the last successful
build used. CI keeps using `.nvmrc` (22.12.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HDauven
HDauven marked this pull request as ready for review November 2, 2026 15:37
@HDauven
HDauven merged commit ecc14e9 into main Nov 2, 2026
1 check passed
@HDauven
HDauven deleted the fix/node-engine-cap branch November 2, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants