Handle registries not serving JSON when checking the version #95062
vercel
commented
on 2026-06-22
eps1lon
requested changes
on 2026-07-14
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
eps1lon
approved these changes
on 2026-07-16
eps1lon
force pushed
from
e9cbfa2b
114 days ago
eps1lon
force pushed
to
a14798db
108 days ago
eps1lon
force pushed
from
a14798db
to
e0575e63
102 days ago
eps1lon
requested changes
on 2026-07-28
eps1lon
force pushed
from
de3b651c
to
37194720
58 days ago
eps1lon
approved these changes
on 2026-08-05
fix: update getVersionInfo use getRegistry
8e9df92a
chore: pdate packages/next/src/server/dev/hot-reloader-shared-utils.ts
9b62fdd8
chore: use header to check content-type
7e843c58
chore: use header to check content-type
24a29ab4
chore: use header to check content-type
bd63f118
chore: only reject if content-type is explicitly not JSON
782a07f0
chore: update comment message
59cd86e3
fix: update getVersionInfo use getRegistry
7ff1e54f
chore: pdate packages/next/src/server/dev/hot-reloader-shared-utils.ts
ab189b38
chore: use header to check content-type
d644f160
chore: use header to check content-type
09af742e
chore: use header to check content-type
2303189a
chore: only reject if content-type is explicitly not JSON
e118313f
chore: update comment message
e59fed2d
refactor: make getRegistry non-blocking
0c34363a
cleanup
2f0c67b7
eps1lon
force pushed
from
37194720
to
2f0c67b7
58 days ago
eps1lon
requested changes
on 2026-09-10
chore: fix content-type check for JSON response
b3e6426f
Merge branch 'canary' into chore/use-npm-registry-in-getVersionInfo
5b1ea768
eps1lon
approved these changes
on 2026-11-02
eps1lon
merged
421c45e0
into canary 5 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub