TeamVis Self-Host-Bundle v0.31.0

This commit is contained in:
TeamVis Release
2026-06-26 10:03:52 +02:00
parent e3ad1d9814
commit e056e459ea
2 changed files with 14 additions and 1 deletions
+2 -1
View File
@@ -6,6 +6,7 @@
"type": "module",
"dependencies": {
"@supabase/supabase-js": "^2.104.0",
"bcryptjs": "^3.0.3"
"bcryptjs": "^3.0.3",
"ws": "^8.18.0"
}
}
+12
View File
@@ -78,6 +78,18 @@ async function readPassword() {
});
}
// Node < 22 hat kein globales WebSocket; supabase-js v2 verlangt im
// Konstruktor (Realtime-Init) eins. Wir nutzen kein Realtime — ein Polyfill
// aus "ws" genügt, damit createClient nicht wirft.
if (typeof globalThis.WebSocket === "undefined") {
try {
const { default: WS } = await import("ws");
globalThis.WebSocket = WS;
} catch {
/* ws fehlt → createClient wirft mit klarer Meldung; npm install hilft */
}
}
const supabase = createClient(supabaseUrl, serviceKey, {
auth: { persistSession: false },
});