chore: config.js entfernt – Konfiguration zentral über .env.local

- alle Importe und Aufrufe von config.js entfernt
- Webservices nutzen direkt window.location + NEXT_PUBLIC_API_PORT_MODE
- zentrale Konfigurationsstrategie über .env.local abgeschlossen
This commit is contained in:
ISA
2025-05-22 15:02:57 +02:00
parent ef3c511694
commit b48a5b2b58
8 changed files with 44 additions and 70 deletions

View File

@@ -2,7 +2,6 @@
// POI -> Kontextmenü -> POI bearbeiten -> Dropdown Geräteauswahl
import { useState, useEffect } from "react";
import { useSelector } from "react-redux";
import { isMockMode } from "../config/config";
export const useMapComponentState = () => {
const [poiTypData, setPoiTypData] = useState([]);
@@ -17,7 +16,7 @@ export const useMapComponentState = () => {
useEffect(() => {
const fetchPoiTypData = async () => {
if (isMockMode()) {
if (process.env.NEXT_PUBLIC_USE_MOCK_API === "true") {
console.log("⚠️ Mock-API: POI Typen geladen (Mock)");
const mockData = [