Skip to content

fix: guarantee Next's native swc binary in the prod Docker build - #2

Merged
huhn511 merged 1 commit into
mainfrom
fix/docker-swc-native
Jun 7, 2026
Merged

fix: guarantee Next's native swc binary in the prod Docker build#2
huhn511 merged 1 commit into
mainfrom
fix/docker-swc-native

Conversation

@huhn511

@huhn511 huhn511 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Force-install Next's arch-matching native swc binary after npm ci so the prod Docker build no longer depends on the npm-ci optional-deps flake (npm/cli #4828). Next 16's Turbopack has no WASM fallback, so a missing binary aborts the build. Verified locally (arm64): Turbopack ✓ Compiled successfully. Same fix already shipped in shell v0.2.2.

🤖 Generated with Claude Code

npm ci intermittently omits the platform-optional @next/swc-linux-*-gnu
native dep even when it's correctly in the lockfile (npm/cli #4828). Next
16's Turbopack has no WASM fallback, so a missing binary aborts the build.
Force-install the arch-matching binary after npm ci so the build no longer
depends on npm-ci luck. Same fix already shipped in shell v0.2.2.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@huhn511
huhn511 merged commit 16bb8dc into main Jun 7, 2026
1 check passed
@huhn511
huhn511 deleted the fix/docker-swc-native branch June 7, 2026 19:32
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.

1 participant