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:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user