feat(mock): zentrale Mock-API-Struktur eingeführt mit .env-Steuerung
- Mock-API-Endpunkte unter pages/api/mocks/webservice erstellt (JSON-basiert) - Zentrale Variable NEXT_PUBLIC_USE_MOCKS zur Modussteuerung eingeführt - fetchGis*-Services rufen je nach Modus reale oder Mockdaten ab - Alert-Hinweis im UI für aktive Mockumgebung eingebaut - .env.production sichert produktives Verhalten (Mocks deaktiviert) - mockData-Verzeichnis via .gitignore vom Repo ausgeschlossen - appVersion.js auf 1.1.231 erhöht
This commit is contained in:
@@ -761,6 +761,12 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
}
|
||||
}, [oms]);
|
||||
|
||||
//----------------------------------------------
|
||||
useEffect(() => {
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
alert("🚧 Development Mode aktiviert – Mock-Daten werden verwendet!");
|
||||
}
|
||||
}, []);
|
||||
//---------------------------------------------
|
||||
//--------------------------------------------
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user