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 {