From e784a2dd424078d818852102ad85f662f839c212 Mon Sep 17 00:00:00 2001 From: spinline Date: Sat, 31 Jan 2026 19:34:51 +0300 Subject: [PATCH] fix(frontend): remove hardcoded localhost from SSE connection --- frontend/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/store.rs b/frontend/src/store.rs index 7df2220..d5bc1b8 100644 --- a/frontend/src/store.rs +++ b/frontend/src/store.rs @@ -45,7 +45,7 @@ pub fn provide_torrent_store() { // Initialize SSE connection create_effect(move |_| { spawn_local(async move { - let mut es = EventSource::new("http://localhost:3000/api/events").unwrap(); + let mut es = EventSource::new("/api/events").unwrap(); let mut stream = es.subscribe("message").unwrap(); while let Some(Ok((_, msg))) = stream.next().await {