cli: `nitro.devProxy` for websocket is not working
Environment
Nuxt 3.7
Reproduction
Nuxt 3.7
Describe the bug
Config:
nitro:{
devProxy: {
'/proxy': {
target: `http://localhost:8080`,
changeOrigin: true,
ws: true,
},
}
In web:
If direct connect to Websocket Server:
Additional context
No response
Logs
No response
About this issue
- Original URL
- State: open
- Created 10 months ago
- Reactions: 5
- Comments: 16 (4 by maintainers)
Can we proxy websockets still in Nuxt 3.11 when Nitro’s experimental websocket support is enabled? The above workaround is no longer working for me.
Thank you @pi0 for the information ! This help me find a workaround I use multiple Nuxt projects in iframe, in this case HMR does not work at all. @jktantan @ucw maybe can be useful for you and anyone in this case :
@pi0 I will open a new issue to keep things clear here.