Repository navigation
Link Node crypto prerender errors to the crypto error page - #102252
Conversation
<!-- NEXT_JS_LLM -->
|
Checked (3)
|
Tests PassedCommit: 76c627b |
|
Everything checks out under the repository’s review policy. Summary
Changes the seven node:crypto prerender wrappers (randomUUID, randomBytes, randomFillSync, randomInt, generatePrimeSync, generateKeyPairSync, generateKeySync) to report their sync IO as type 'crypto' instead of 'random', so terminal errors link to blocking-prerender-crypto(-client) like the dev overlay already does. The 32 matching e2e build snapshots are updated. Checked (5)
Review steps
Read the full report ↗ (Download report.json • report.md) |
When a Server Component calls a synchronous Node crypto API such as
randomBytes(16)during prerendering, the terminal names the right function but links to theMath.random()error page. The dev overlay already links the same call to the crypto page.Classify the seven instrumented
node:cryptocalls as crypto so the terminal prints the same link:Verification
Math.random()and callback-basedrandomBytesandrandomIntas controls.getRandomValuessnapshots already pointed to the crypto page.Found while reviewing #102245. This fix can merge independently.