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
test-org/trust-module-frontend/pipeline/pr-rc This commit looks good
Details
Reviewed-on: http://git.enode/deployer3000/trust-module-frontend/pulls/33pull/32/head
commit
c1b0f10e62
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue