Websocket Proxying with Rewrites
Unanswered
Pacific anchoveta posted this in #help-forum
Pacific anchovetaOP
Hi! So I'm connecting to my backend server from my separate frontend via proxies in NextJS's rewrites; however, I also have a websocket connection that I need to rewrite and I haven't found anything concrete about how to do that. The most I've really found is this thread: https://github.com/vercel/next.js/discussions/38057, and if that is the only way, I'm not sure how to integrate it with my existing project.
Any help will be greatly appreciated. Thank you!
Any help will be greatly appreciated. Thank you!
1 Reply
@Pacific anchoveta Hi! So I'm connecting to my backend server from my separate frontend via proxies in NextJS's rewrites; however, I also have a websocket connection that I need to rewrite and I haven't found anything concrete about how to do that. The most I've really found is this thread: https://github.com/vercel/next.js/discussions/38057, and if that is the only way, I'm not sure how to integrate it with my existing project.
Any help will be greatly appreciated. Thank you!
Cape lion
Hi there, do you have any luck on this?
I've tried using rewrites but can't get it working, also tried
will appreciate any insight
I've tried using rewrites but can't get it working, also tried
http-proxy-middlewarewill appreciate any insight