IP von window und nicht von .env.local, weil in CHIPTOOL kann die IP geändert werden

This commit is contained in:
ISA
2024-10-21 10:29:52 +02:00
parent 36703a7f5c
commit 328b1d8a0e
5 changed files with 11 additions and 6 deletions

View File

@@ -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("");