fix(webui): move the live stream to /api/stream so reloading /events serves the page

This commit is contained in:
sam committed 2026-09-23 21:16:29 +10:00
1 parent 9de96c1d42
commit 36e69724a4
10 files changed
+43 -19

No files matched your search

+1 -1
View File
@@ -217,7 +217,7 @@ export function subscribeEvents(
onEvent: (event: unknown) => void,
onStateChange?: (state: StreamState) => void,
): () => void {
const src = new EventSource("/events");
const src = new EventSource("/api/stream");
src.onopen = () => onStateChange?.("live");
src.onerror = () => onStateChange?.("reconnecting");
src.onmessage = (e) => {