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