Repository navigation
Fix E2E runtime boot on Windows (real next binary) - #14
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
trac41799
force-pushed
the
hardening/production
branch
from
September 30, 2026 15:39
785be3f to
38e08ac
Compare
The E2E runtime check ran node against node_modules/.bin/next, but that path is a POSIX shell script on Windows, so Node died instantly with a SyntaxError on its basedir line and the check burned its whole 60s boot window polling a dead server. resolve_next_bin prefers node_modules/next/dist/bin/next on every platform. Proven directly: the preserved POC project's dev server reports Ready in 11.7s and /api/health returns 200. Test: test_resolve_next_bin_prefers_the_real_js_entry. Gates: Rust 219 + 42, Web 341, tsc/lint clean.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the last failing local gate: the E2E runtime check could never boot a Next.js dev server on Windows.
Root cause (proven, not guessed)
The check ran
node node_modules/.bin/next dev, but on Windows.bin/nextis a POSIX shell script. Node died instantly withSyntaxError: missing ) after argument liston itsbasedir=$(...)line — the "60s boot timeout" was 60s of polling a dead server. The captured server log (added in the previous round) is what made this visible.Fix
verification::resolve_next_binprefers the real JS entrynode_modules/next/dist/bin/nexton every platform, falling back to the.binshim. Test:test_resolve_next_bin_prefers_the_real_js_entry.Ready in 11.7s,/api/health→ HTTP 200{"status":"ok",...}. The 60s window is plenty once the right binary runs.Gates
Rust 219 lib + 42 integration (2 real-agent tests ignored), Web 341, tsc/lint clean.
What this unblocks
The from-empty path previously stopped at
verification_failedonly on this check (tsc/build/artifact/delivery all pass). The next from-empty acceptance run should reachsucceeded— that run is the final local confirmation.