fix: fetchSingleTDMDataService API-Endpoint in Development korrigiert
- Query Parameter ?slot=X statt /slotX - Dev-Umgebung lädt jetzt korrekt über /api/cpl/tdmDataAPIHandler?slot=X - Prod bleibt unverändert mit TDM=X Parameter
This commit is contained in:
@@ -13,7 +13,7 @@ export const fetchTDRReferenceCurveService = async (
|
||||
// 🔁 Fallback: Datei oder Produktion-API
|
||||
const isDev = process.env.NEXT_PUBLIC_NODE_ENV === "development";
|
||||
const url = isDev
|
||||
? `/apiMockData/tdr-reference-curves/slot${slot}.json`
|
||||
? `/api/cpl/tdr-reference-curves/slot${slot}.json`
|
||||
: `${window.location.origin}/CPL?Service/empty.acp&TDR=${slot}`;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user