environment variables fixed

This commit is contained in:
2025-07-04 14:24:35 +03:00
parent 9f87ea5995
commit 4d7b5019d3
13 changed files with 136 additions and 20 deletions

View File

@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
import { Grid, Paper, Typography, Box, Divider } from '@mui/material';
import StorageIcon from '@mui/icons-material/Storage';
import ComputerIcon from '@mui/icons-material/Computer';
import { config } from '../../config/env';
interface VM {
name: string;
@@ -21,7 +22,7 @@ interface VMPlacementData {
}>;
}
const ENDPOINT = 'http://141.196.166.241:8003/prom/get_chart_data/vm_placement';
const ENDPOINT = `${config.apiUrl}/prom/get_chart_data/vm_placement`;
const REFRESH_INTERVAL = 30000; // 30 seconds
const SummaryStats: React.FC = () => {