Skip to content

Conversation

@luvkapur
Copy link
Member

@luvkapur luvkapur commented Jul 9, 2025

This PR removes the generic /_hmr WebSocket proxy entry from UIServer.getProxy().

Previously,
/_hmr/<envId> matched two ProxyEntrys (catch-all & env-specific) → the same socket was proxied twice, sending a second 101 header → “Invalid frame header / ECONNRESET” in the browser and broken HMR

With this fix,
Each HMR request matches exactly one proxy entry. The connection upgrades once; HMR frames flow without errors.

@luvkapur luvkapur changed the title ix(ui-server): eliminate duplicate /_hmr proxy to restore WebSocket HMR fix(ui-server): eliminate duplicate /_hmr proxy to restore WebSocket HMR Jul 9, 2025
@GiladShoham GiladShoham enabled auto-merge (squash) July 15, 2025 11:34
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.

3 participants