IP von window und nicht von .env.local, weil in CHIPTOOL kann die IP geändert werden
This commit is contained in:
@@ -13,7 +13,8 @@ import XioPM2Status from "../../components/modulesStatus/XioPM2Status";
|
||||
import { Icon } from "@iconify/react";
|
||||
|
||||
function Dashboard() {
|
||||
const apiUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
|
||||
//const apiUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
|
||||
const apiUrl = `https://${window.ip}:443`;
|
||||
const [last20Messages, setLast20Messages] = useState([]);
|
||||
const [kueOnline, setkueOnline] = useState([]);
|
||||
const [ip, setIp] = useState("");
|
||||
|
||||
@@ -3,7 +3,8 @@ import React, { useState, useEffect } from "react";
|
||||
import Kue705FO from "../../components/modules/Kue705FO";
|
||||
|
||||
function Kabelueberwachung() {
|
||||
const apiUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
|
||||
//const apiUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
|
||||
const apiUrl = `https://${window.ip}:443`;
|
||||
const [activeRack, setActiveRack] = useState(1); // Track the active rack
|
||||
const [kueIso, setKueIso] = useState([]); // State to store isolation values
|
||||
const [kueName, setKueName] = useState([]); // State to store the KUE names
|
||||
|
||||
Reference in New Issue
Block a user