docs: Webservice-ID-Parameter über URL statt .env.local (BREAKING CHANGE)
- Entfernt Fallback für idMap und idUser via .env.local - Anpassung aller fetchGis*-Funktionen zur Nutzung von URL-Parametern - Dokumentation entsprechend aktualisiert - CHANGELOG.md hinzugefügt (Version 1.1.65)
This commit is contained in:
@@ -5,8 +5,8 @@ const apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
|
||||
export const fetchGisStationsStatic = async () => {
|
||||
try {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const idMap = params.get("idMap") || process.env.NEXT_PUBLIC_DEFAULT_ID_MAP || "12";
|
||||
const idUser = params.get("idUser") || process.env.NEXT_PUBLIC_DEFAULT_ID_USER || "484";
|
||||
const idMap = params.get("idMap");
|
||||
const idUser = params.get("idUser");
|
||||
const response = await fetch(`${apiBaseUrl}/GisStationsStatic?idMap=${idMap}`);
|
||||
|
||||
//console.log("📡 API Response Status:", response.status);
|
||||
|
||||
Reference in New Issue
Block a user