Merge pull request 'added an environment variable' (#33) from debugging into redesign
test-org/trust-module-frontend/pipeline/pr-rc This commit looks good Details

Reviewed-on: http://git.enode/deployer3000/trust-module-frontend/pulls/33
pull/32/head
DmitriyA 2025-04-09 17:19:13 +03:00
commit c1b0f10e62
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ const PrometheusChart = ({ metricName }) => {
// Если соединение в процессе переподключения, тоже возвращаем // Если соединение в процессе переподключения, тоже возвращаем
if (socketRef.current.reconnecting) return socketRef.current; if (socketRef.current.reconnecting) return socketRef.current;
} }
//VITE_BACK_WS_URL
const socket = io('http://192.168.2.39:3000/api/metrics-ws', { const socket = io(`${import.meta.env.VITE_BACK_WS_URL}/api/metrics-ws`, {
transports: ['websocket'], transports: ['websocket'],
reconnection: true, reconnection: true,
reconnectionAttempts: Infinity, reconnectionAttempts: Infinity,