feat(backend/frontend): Aktualisierung der Abhängigkeiten und Verbesserung der Umgebungsvariablen

- Hinzufügen neuer Abhängigkeiten in der package-lock.json, einschließlich @types/trusted-types und call-bind-apply-helpers.
- Aktualisierung der Versionen mehrerer Pakete, darunter brace-expansion, dompurify, express und express-session.
- Anpassung der API-Basis-URL in axios.js zur Unterstützung verschiedener Umgebungen.
- Verbesserung der WebSocket-URL-Konfiguration in chatWs.js für Produktionsumgebungen.
- Aktualisierung der Chat-Konfiguration in chatConfig.js zur Unterstützung von sicheren WebSocket-Verbindungen.
This commit is contained in:
Torsten Schulz (local)
2025-08-29 09:16:23 +02:00
parent 5f99000f43
commit 7b9279ef29
5 changed files with 190 additions and 59 deletions

View File

@@ -20,8 +20,8 @@ export function getChatWsUrl() {
if (host === 'localhost' || host === '127.0.0.1' || host === '::1' || host === '[::1]') {
return `${proto}://127.0.0.1:1235`;
}
// Default to same origin (no hardcoded chat port). Adjust via VITE_CHAT_WS_URL if needed.
const defaultUrl = `${proto}://${host}${port}`;
// Default to same origin with socket.io path for production
const defaultUrl = `${proto}://${host}${port}/socket.io/`;
return defaultUrl;
}