fix: fetchTDRChartDataByIdService API-Endpoint in Development korrigiert

- Dev-Umgebung nutzt jetzt /api/cpl/tdrDataAPIHandler?id=X
- direkte Zugriffe auf /apiMockData/TDR/... entfernt
- Prod-API bleibt unverändert
This commit is contained in:
Ismail Ali
2025-04-15 18:48:57 +02:00
parent a1e49716e2
commit 58577daf75
2 changed files with 2 additions and 2 deletions

View File

@@ -6,5 +6,5 @@
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
*/ */
const webVersion = "1.6.229"; const webVersion = "1.6.230";
export default webVersion; export default webVersion;

View File

@@ -6,7 +6,7 @@ export const fetchTDRChartDataByIdService = async (
const isDev = process.env.NEXT_PUBLIC_NODE_ENV === "development"; const isDev = process.env.NEXT_PUBLIC_NODE_ENV === "development";
const url = isDev const url = isDev
? `/api/cpl/TDR/${id}.json` ? `/api/cpl/tdrDataAPIHandler?id=${id}`
: `${window.location.origin}/CPL?Service/empty.acp&TDR=${id}`; : `${window.location.origin}/CPL?Service/empty.acp&TDR=${id}`;
try { try {