feat: new tourment and add bot

This commit is contained in:
Lala, Shahd
2026-05-31 21:28:40 +00:00
parent bae4958776
commit e3b87a7a1a
29 changed files with 1771 additions and 85 deletions
+3 -1
View File
@@ -4,8 +4,10 @@
*/
export function loadRuntimeConfig() {
const config = (window as any).__RUNTIME_CONFIG__ || {};
const wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
const derivedWsUrl = `${wsProtocol}://${window.location.host}`;
return {
apiUrl: config.API_URL || '',
wsUrl: config.WEBSOCKET_URL || 'ws://localhost:8080'
wsUrl: config.WEBSOCKET_URL || derivedWsUrl
};
}