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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user