feat: new tourment and add bot
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user