next.js
Handle registries not serving JSON when checking the version
#95062
Merged

Handle registries not serving JSON when checking the version #95062

vctqs1
vercel
vercel commented on 2026-06-22
eps1lon
eps1lon commented on 2026-06-22
eps1lon
eps1lon requested changes on 2026-07-14
eps1lon eps1lon changed the title fix(next): `getVersionInfo()` throw error in dev server when npm proxy return HTML resp instead of json Handle registries not serving JSON when checking the version 114 days ago
github-actions
eps1lon
eps1lon approved these changes on 2026-07-16
github-actions
eps1lon eps1lon force pushed from e9cbfa2b 114 days ago
vctqs1
eps1lon eps1lon force pushed to a14798db 108 days ago
vctqs1
eps1lon eps1lon force pushed from a14798db to e0575e63 102 days ago
eps1lon
eps1lon requested changes on 2026-07-28
vctqs1
vctqs1
eps1lon eps1lon force pushed from de3b651c to 37194720 58 days ago
eps1lon
eps1lon approved these changes on 2026-08-05
vctqs1 fix: update getVersionInfo use getRegistry
8e9df92a
vctqs1 chore: pdate packages/next/src/server/dev/hot-reloader-shared-utils.ts
9b62fdd8
vctqs1 chore: use header to check content-type
7e843c58
vctqs1 chore: use header to check content-type
24a29ab4
vctqs1 chore: use header to check content-type
bd63f118
vctqs1 chore: only reject if content-type is explicitly not JSON
782a07f0
vctqs1 chore: update comment message
59cd86e3
vctqs1 fix: update getVersionInfo use getRegistry
7ff1e54f
vctqs1 chore: pdate packages/next/src/server/dev/hot-reloader-shared-utils.ts
ab189b38
vctqs1 chore: use header to check content-type
d644f160
vctqs1 chore: use header to check content-type
09af742e
vctqs1 chore: use header to check content-type
2303189a
vctqs1 chore: only reject if content-type is explicitly not JSON
e118313f
vctqs1 chore: update comment message
e59fed2d
vctqs1 refactor: make getRegistry non-blocking
0c34363a
eps1lon cleanup
2f0c67b7
eps1lon eps1lon force pushed from 37194720 to 2f0c67b7 58 days ago
eps1lon
eps1lon requested changes on 2026-09-10
vctqs1 chore: fix content-type check for JSON response
b3e6426f
vctqs1 Merge branch 'canary' into chore/use-npm-registry-in-getVersionInfo
5b1ea768
github-actions github-actions added type: next
eps1lon
eps1lon approved these changes on 2026-11-02
eps1lon eps1lon merged 421c45e0 into canary 5 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone