- Alle API-URLs nutzen jetzt `process.env.NEXT_PUBLIC_API_BASE_URL` - `fetchGisStationsMeasurements`, `fetchGisStationsStaticDistrict`, `fetchGisStationsStatusDistrict`, `fetchGisSystemStatic` angepasst - `idMap` und `idUser` werden dynamisch aus URL oder `.env.local` bezogen - Entfernte `config.js`-Abhängigkeit für API-URLs - `.env.local` erlaubt jetzt flexible Server-IPs ohne Code-Anpassung
18 lines
563 B
Plaintext
18 lines
563 B
Plaintext
#.env.local
|
|
# DB-Settings (nur Backend)
|
|
DB_HOST=localhost
|
|
DB_USER=root
|
|
DB_PASSWORD="root#$"
|
|
DB_NAME=talas_v5
|
|
DB_PORT=3306
|
|
|
|
# Public Settings (Client braucht IP/Domain)
|
|
NEXT_PUBLIC_SERVER_URL="http://192.168.10.33" # oder evtl. später https://nodemap.firma.de
|
|
NEXT_PUBLIC_ENABLE_GEOCODER=true
|
|
NEXT_PUBLIC_USE_MOCK_API=false
|
|
NEXT_PUBLIC_DEBUG_LOG=true
|
|
|
|
# für Polylines/kabelstecken -> in Konextmenü "Station öffnen" "
|
|
NEXT_PUBLIC_BASE_URL=http://192.168.10.33/talas5/devices/
|
|
NEXT_PUBLIC_API_BASE_URL=http://192.168.10.33/talas5/ClientData/WebServiceMap.asmx
|