You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next.js rewrites do not support streaming/SSE — they buffer the full response before forwarding. The EventSource in the browser connects to the Next.js server, which never flushes the SSE events in real time.
Fix
In tinyoffice/src/lib/api.ts, the subscribeToEvents function should create the EventSource pointing directly to the API server (port 3777) instead of going through the Next.js rewrite:
Activity
fix(tinyoffice): connect SSE directly to API, bypass Next.js rewrite