Compare commits

..

2 Commits

Author SHA1 Message Date
DmitriyA c1b0f10e62 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
2025-04-09 17:19:13 +03:00
DmitriyA 858f6e2c4c added an environment variable 2025-04-09 10:17:45 -04:00
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,