feat: serve presentation sync sessions

This commit is contained in:
lda
2026-07-14 12:25:14 +07:00 Verified
parent c428d180d1
commit 33d5e0bd4e
8 changed files with 511 additions and 15 deletions
+2
View File
@@ -17,6 +17,8 @@ export default defineConfig({
// Server must listen on this port (set via WEB_PORT env or default 8787)
"/api": {
target: `http://127.0.0.1:${backendPort}`,
// Presentation sync shares the API origin while Vite HMR keeps its own socket.
ws: true,
configure: (proxy) => {
proxy.on("error", (error, _request, response) => {
if (response.headersSent) return;